Add some logs

This commit is contained in:
Quentin 2019-09-15 16:14:26 +02:00
parent 0e88336e21
commit 9a6830ccd5

View file

@ -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;