From fae330b3b90572ef55f6ffd9b67c2c6fa7f5f526 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 17 Jul 2008 07:49:51 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/socket/socket.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9d53f75f74..2d28af6820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 17 16:48:40 2008 NAKAMURA Usaku + + * 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 * mkconfig.rb: Simplify expression for RDoc. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 14ed6fe963..67573a663a 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1177,7 +1177,6 @@ ruby_connect(int fd, const struct sockaddr *sockaddr, int len, int socks) if (socks) func = socks_connect_blocking; #endif for (;;) { - rb_thread_fd_writable(fd); status = BLOCKING_REGION(func, &arg); if (status < 0) { switch (errno) {