diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index acbf46249..7bcc11002 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -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; } diff --git a/lib/parsers.c b/lib/parsers.c index 3ff3fbed4..f9f078d7c 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -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; }