mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Print error string on accept failure.
This commit is contained in:
parent
6b66791b46
commit
7c8d98924b
1 changed files with 1 additions and 1 deletions
|
@ -1544,7 +1544,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
accept_fd = accept(pollfd->fd, (struct sockaddr *)&cli_addr,
|
||||
&clilen);
|
||||
if (accept_fd < 0) {
|
||||
debug("ERROR on accept\n");
|
||||
debug("ERROR on accept: %d\n", strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue