Project

General

Profile

Bug #4934 ยป listen_backlog_increase.patch

ghazel (Greg Hazel), 06/27/2011 07:53 AM

View differences:

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)
    (1-1/1)