From 9a6830ccd5d95e21b8521fd446ad2106f31e8c1b Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 15 Sep 2019 16:14:26 +0200 Subject: [PATCH] Add some logs --- src/socks5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/socks5.c b/src/socks5.c index 46c996e..91f43c7 100644 --- a/src/socks5.c +++ b/src/socks5.c @@ -125,7 +125,8 @@ int on_socks5_send_client_req(struct evt_core_ctx* ctx, struct evt_core_fdinfo* return 1; } s5ctx->cr_cursor += written; - if (s5ctx->cr_cursor < s5ctx->cr_size) return 0; + printf("[socks5_server_send_client_req] sent %ld/%ld\n", s5ctx->cr_cursor, s5ctx->cr_size); + if (s5ctx->cr_cursor < s5ctx->cr_size) return 0; // Trigger loop to trigger EAGAIN. evt_core_mv_fd2 (ctx, fdinfo, "socks5-recv-server-reply"); return 1;