1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cosmetic debug improvements

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-03-23 09:44:47 +08:00
parent 9c037c05fb
commit 98ba9e01b4
2 changed files with 4 additions and 4 deletions

View file

@ -1028,15 +1028,15 @@ read_pending:
sizeof(context->service_buffer), 0);
if (eff_buf.token_len < 0) {
lwsl_debug("Socket read returned %d\n",
eff_buf.token_len);
lwsl_debug("service_fd read ret = %d, errno = %d\n",
eff_buf.token_len, errno);
if (errno != EINTR && errno != EAGAIN)
goto close_and_handled;
n = 0;
goto handled;
}
if (!eff_buf.token_len) {
lwsl_info("closing connection due to 0 length read\n");
lwsl_info("service_fd: closing due to 0 length read\n");
goto close_and_handled;
}

View file

@ -1075,7 +1075,7 @@ int libwebsocket_interpret_incoming_packet(struct libwebsocket *wsi,
buf + n, len - n);
} else
/* rxflow while we were spilling prev rxflow */
lwsl_info("stalling in existing rxflow buffer");
lwsl_info("stalling in existing rxflow buf\n");
return 1;
}