diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-22 04:17:51 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-22 04:17:51 +0000 |
commit | 977b723312738e1b0243a7ac567a61df1de4040f (patch) | |
tree | b0dc32ba120955f5e2aaf2961d63add4d6f90007 /complex.c | |
parent | 0e048fde890f4c9fcc093586a48317dfcaf93e2e (diff) | |
download | ruby-977b723312738e1b0243a7ac567a61df1de4040f.tar.gz |
merge revision(s) r45084: [Backport #9547]
* ext/socket/init.c (wait_connectable): break if the socket is
writable to avoid infinite loops on FreeBSD and other platforms
which conforms to SUSv3. This problem cannot be reproduced with
loopback interfaces, so it's hard to write test code.
rsock_connect() and wait_connectable() are overly complicated, so
they should be refactored, but I commit this fix as a workaround
for the release of Ruby 1.9.3 scheduled on Feb 24.
[ruby-core:60940] [Bug #9547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
0 files changed, 0 insertions, 0 deletions