mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (init_inetsock_internal): remove setting
SO_REUSEADDR option on server socket. fixed: [ruby-core:6765] ([ ruby-Bugs-2872 ]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c43a23d49e
commit
21d45159de
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Nov 28 13:20:11 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (init_inetsock_internal): remove setting
|
||||
SO_REUSEADDR option on server socket. fixed: [ruby-core:6765]
|
||||
([ ruby-Bugs-2872 ])
|
||||
|
||||
Mon Nov 28 13:11:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* win32/win32.c (rb_w32_strerror): remove all CR and LF. (avoid broken
|
||||
|
|
|
@ -1179,11 +1179,6 @@ init_inetsock_internal(arg)
|
|||
}
|
||||
arg->fd = fd;
|
||||
if (type == INET_SERVER) {
|
||||
#ifndef _WIN32
|
||||
status = 1;
|
||||
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
|
||||
(char*)&status, sizeof(status));
|
||||
#endif
|
||||
status = bind(fd, res->ai_addr, res->ai_addrlen);
|
||||
syscall = "bind(2)";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue