Changed backlog length, listen(20) -> listen(100)

This commit is contained in:
valenok 2011-06-21 22:47:44 +01:00
parent 5cf7e899c4
commit 9e524a2fce

View File

@ -3374,7 +3374,7 @@ static int set_ports_option(struct mg_context *ctx) {
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &on,
sizeof(on)) != 0 ||
bind(sock, &so.lsa.u.sa, so.lsa.len) != 0 ||
listen(sock, 20) != 0) {
listen(sock, 100) != 0) {
closesocket(sock);
cry(fc(ctx), "%s: cannot bind to %.*s: %s", __func__,
vec.len, vec.ptr, strerror(ERRNO));