summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-28 04:26:46 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-28 04:26:46 +0000
commita7d51d578c7168d69a0d02382ef6ab4c09c4fa89 (patch)
tree703a5a05e03017172649a21be95322ab181ad8ed /ext/socket
parent71d7be90101a21ca67d7c1fc8265b840f25e5d2c (diff)
downloadruby-a7d51d578c7168d69a0d02382ef6ab4c09c4fa89.tar.gz
ruby-a7d51d578c7168d69a0d02382ef6ab4c09c4fa89.tar.xz
ruby-a7d51d578c7168d69a0d02382ef6ab4c09c4fa89.zip
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 6c268d4c1..0a9cf3078 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1097,11 +1097,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)";
}