Add log
This commit is contained in:
parent
b3d13aa5f4
commit
f0dfb84959
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ int on_socks5_recv_server_reply(struct evt_core_ctx* ctx, struct evt_core_fdinfo
|
||||||
|
|
||||||
// Read headers
|
// Read headers
|
||||||
if (s5ctx->sr_cursor < fixed_headers_size) {
|
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);
|
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 == -1 && errno == EAGAIN) return 1;
|
||||||
if (readn < 0) goto move_to_failed;
|
if (readn < 0) goto move_to_failed;
|
||||||
|
|
Loading…
Reference in a new issue