Permalink
Browse files

Merge commit 'sandofsky/master'

  • Loading branch information...
2 parents db54d2f + 961a998 commit 6726cc21867f81ea574c25e14e78ed92ed267d24 @wilson wilson committed Nov 21, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 ext/typhoeus/typhoeus_multi.c
@@ -142,7 +142,11 @@ static VALUE multi_perform(VALUE self) {
Data_Get_Struct(self, CurlMulti, curl_multi);
rb_curl_multi_run( self, curl_multi->multi, &(curl_multi->running) );
+
+ struct timeval thread_poll_tv = {0, 5000};
+
while(curl_multi->running) {
+ rb_thread_wait_for(thread_poll_tv);
FD_ZERO(&fdread);
FD_ZERO(&fdwrite);
FD_ZERO(&fdexcep);

0 comments on commit 6726cc2

Please sign in to comment.