From f0dfb84959b8de38d9a6e066c78f0db574ba98c0 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 1 Feb 2020 09:05:53 +0100 Subject: [PATCH] Add log --- src/socks5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;