Index: ext/socket/ipsocket.c =================================================================== --- ext/socket/ipsocket.c (revision 32136) +++ ext/socket/ipsocket.c (working copy) @@ -105,7 +105,7 @@ arg->fd = -1; if (type == INET_SERVER) { - status = listen(fd, 5); + status = listen(fd, 1024); if (status < 0) { close(fd); rb_sys_fail("listen(2)"); Index: win32/win32.c =================================================================== --- win32/win32.c (revision 32136) +++ win32/win32.c (working copy) @@ -3478,7 +3478,7 @@ if (getsockname(svr, addr, &len) < 0) break; if (type == SOCK_STREAM) - listen(svr, 5); + listen(svr, 1024); w = open_ifs_socket(af, type, protocol); if (w == INVALID_SOCKET)