This commit is contained in:
Quentin 2020-02-01 09:05:53 +01:00
parent b3d13aa5f4
commit f0dfb84959

View file

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