Set listen backlog to SOMAXCONN.
This commit is contained in:
parent
b88e096e19
commit
369730921e
1 changed files with 1 additions and 1 deletions
|
@ -2879,7 +2879,7 @@ libwebsocket_create_context(int port, const char *interf,
|
|||
wsi->mode = LWS_CONNMODE_SERVER_LISTENER;
|
||||
insert_wsi(context, wsi);
|
||||
|
||||
listen(sockfd, 5);
|
||||
listen(sockfd, SOMAXCONN);
|
||||
fprintf(stderr, " Listening on port %d\n", port);
|
||||
|
||||
/* list in the internal poll array */
|
||||
|
|
Loading…
Add table
Reference in a new issue