mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-30 23:49:01 +08:00
Changed backlog length, listen(20) -> listen(100)
This commit is contained in:
parent
5cf7e899c4
commit
9e524a2fce
@ -3374,7 +3374,7 @@ static int set_ports_option(struct mg_context *ctx) {
|
|||||||
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &on,
|
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &on,
|
||||||
sizeof(on)) != 0 ||
|
sizeof(on)) != 0 ||
|
||||||
bind(sock, &so.lsa.u.sa, so.lsa.len) != 0 ||
|
bind(sock, &so.lsa.u.sa, so.lsa.len) != 0 ||
|
||||||
listen(sock, 20) != 0) {
|
listen(sock, 100) != 0) {
|
||||||
closesocket(sock);
|
closesocket(sock);
|
||||||
cry(fc(ctx), "%s: cannot bind to %.*s: %s", __func__,
|
cry(fc(ctx), "%s: cannot bind to %.*s: %s", __func__,
|
||||||
vec.len, vec.ptr, strerror(ERRNO));
|
vec.len, vec.ptr, strerror(ERRNO));
|
||||||
|
Loading…
Reference in New Issue
Block a user