diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index f104d4eb4e..586fb9230b 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -743,6 +743,14 @@ ruby_connect(fd, sockaddr, len, socks) case EAGAIN: #ifdef EINPROGRESS case EINPROGRESS: +#if defined __CYGWIN__ + { + struct timeval tv; + tv.tv_sec = 0; + tv.tv_usec = 100000; + rb_thread_wait_for(&tv); + } +#endif #endif thread_write_select(fd); continue; |