|
@@ -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));
|