cosmetic debug improvements
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
9c037c05fb
commit
98ba9e01b4
2 changed files with 4 additions and 4 deletions
|
@ -1028,15 +1028,15 @@ read_pending:
|
||||||
sizeof(context->service_buffer), 0);
|
sizeof(context->service_buffer), 0);
|
||||||
|
|
||||||
if (eff_buf.token_len < 0) {
|
if (eff_buf.token_len < 0) {
|
||||||
lwsl_debug("Socket read returned %d\n",
|
lwsl_debug("service_fd read ret = %d, errno = %d\n",
|
||||||
eff_buf.token_len);
|
eff_buf.token_len, errno);
|
||||||
if (errno != EINTR && errno != EAGAIN)
|
if (errno != EINTR && errno != EAGAIN)
|
||||||
goto close_and_handled;
|
goto close_and_handled;
|
||||||
n = 0;
|
n = 0;
|
||||||
goto handled;
|
goto handled;
|
||||||
}
|
}
|
||||||
if (!eff_buf.token_len) {
|
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;
|
goto close_and_handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1075,7 +1075,7 @@ int libwebsocket_interpret_incoming_packet(struct libwebsocket *wsi,
|
||||||
buf + n, len - n);
|
buf + n, len - n);
|
||||||
} else
|
} else
|
||||||
/* rxflow while we were spilling prev rxflow */
|
/* rxflow while we were spilling prev rxflow */
|
||||||
lwsl_info("stalling in existing rxflow buffer");
|
lwsl_info("stalling in existing rxflow buf\n");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue