1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Set listen backlog to SOMAXCONN.

This commit is contained in:
David Galeano 2013-01-10 09:58:24 +08:00 committed by Andy Green
parent b88e096e19
commit 369730921e

View file

@ -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 */