* ext/socket/socket.c (ruby_connect): select() for connect() has
mean only when the socket is non-blocking. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b85504f0e9
commit
fae330b3b9
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 17 16:48:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (ruby_connect): select() for connect() has
|
||||||
|
mean only when the socket is non-blocking.
|
||||||
|
|
||||||
Thu Jul 17 10:55:24 2008 Eric Hodel <drbrain@segment7.net>
|
Thu Jul 17 10:55:24 2008 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* mkconfig.rb: Simplify expression for RDoc.
|
* mkconfig.rb: Simplify expression for RDoc.
|
||||||
|
@ -1177,7 +1177,6 @@ ruby_connect(int fd, const struct sockaddr *sockaddr, int len, int socks)
|
|||||||
if (socks) func = socks_connect_blocking;
|
if (socks) func = socks_connect_blocking;
|
||||||
#endif
|
#endif
|
||||||
for (;;) {
|
for (;;) {
|
||||||
rb_thread_fd_writable(fd);
|
|
||||||
status = BLOCKING_REGION(func, &arg);
|
status = BLOCKING_REGION(func, &arg);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user