mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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,
|
||||
&clilen);
|
||||
if (accept_fd < 0) {
|
||||
lwsl_warn("ERROR on accept: %d\n", strerror(errno));
|
||||
return -1;
|
||||
lwsl_warn("ERROR on accept: %s\n", strerror(errno));
|
||||
break;
|
||||
}
|
||||
|
||||
/* Disable Nagle */
|
||||
|
|
Loading…
Add table
Reference in a new issue