Bug #4934 ยป listen_backlog_increase.patch
| ext/socket/ipsocket.c (working copy) | ||
|---|---|---|
|
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)");
|
||
| win32/win32.c (working copy) | ||
|---|---|---|
|
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)
|
||