diff --git a/src/socks5.c b/src/socks5.c index 91f43c7..b98f3c8 100644 --- a/src/socks5.c +++ b/src/socks5.c @@ -242,7 +242,7 @@ int on_socks5_recv_server_reply(struct evt_core_ctx* ctx, struct evt_core_fdinfo // Read headers if (s5ctx->sr_cursor < fixed_headers_size) { - printf(" [socks5] read headers\n"); + printf(" [socks5] read headers (current: %ld/%ld - %ld to read)\n", s5ctx->sr_cursor, fixed_headers_size, fixed_headers_size - s5ctx->sr_cursor); readn = read(fdinfo->fd, (char*)&s5ctx->sr + s5ctx->sr_cursor, fixed_headers_size - s5ctx->sr_cursor); if (readn == -1 && errno == EAGAIN) return 1; if (readn < 0) goto move_to_failed;