diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-17 21:20:58 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-17 21:20:58 +0000 |
commit | 7914a8726eddc84d232f99829d37331aae6f9cdc (patch) | |
tree | 5cc13755e5c4cc34e0ccb477c73f8963c5959905 /ChangeLog | |
parent | 106075eac89ede7bcd71616ba78f1344892140a4 (diff) | |
download | ruby-7914a8726eddc84d232f99829d37331aae6f9cdc.tar.gz |
socket (rsock_connect): fix and refactor for blocking
* ext/socket/init.c (rsock_connect): refactor for blocking
(wait_connectable): clear error before wait
[Bug #9356]
We no longer use non-blocking sockets to emulate blocking behavior,
so eliminate error-prone and confusing platform-dependent code.
According to POSIX, connect() only needs to be called once in the
face of EINTR, so do not loop on it.
Before waiting on connect, drop any pending errors, since
rb_wait_for_single_fd may not clear the existing error
properly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Thu Sep 18 05:44:05 2014 Eric Wong <e@80x24.org> + + * ext/socket/init.c (rsock_connect): refactor for blocking + (wait_connectable): clear error before wait + [Bug #9356] + Wed Sep 17 23:12:36 2014 NARUSE, Yui <naruse@ruby-lang.org> * lib/uri/rfc3986_parser.rb: specify a regexp for :OPAQUE; generic.rb |