robustness server dont exit server on accept problems
Error message corrected to %s as well Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
3278872824
commit
1023d2b18f
1 changed files with 2 additions and 2 deletions
|
@ -1651,8 +1651,8 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
||||||
accept_fd = accept(pollfd->fd, (struct sockaddr *)&cli_addr,
|
accept_fd = accept(pollfd->fd, (struct sockaddr *)&cli_addr,
|
||||||
&clilen);
|
&clilen);
|
||||||
if (accept_fd < 0) {
|
if (accept_fd < 0) {
|
||||||
lwsl_warn("ERROR on accept: %d\n", strerror(errno));
|
lwsl_warn("ERROR on accept: %s\n", strerror(errno));
|
||||||
return -1;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable Nagle */
|
/* Disable Nagle */
|
||||||
|
|
Loading…
Add table
Reference in a new issue