From: Todd Fisher Date: 2008-07-24T11:42:45+09:00 Subject: Re: Multiple HTTP Sockets or Threads for file uploads. Michael Williams wrote: > On Jun 24, 7:03�am, Robert Klemme wrote: >> >> This is not necessarily true for IO bound tasks. Also, if curl is used >> you just need multiple child processes but not multiple threads. >> >> Kind regards >> >> robert > > Alright, I'm currently using Threads and it has sped things up > tremendously. Thank you both for your suggestions. > > One problem I'm having now is that sometimes a file will hang cURL, > and while the other subprocesses finish there might be one or two that > hang up. In this case I'd like to have some kind of granular control > over killing individual items without necessarily killing the whole > thread. I'd be afraid to kill the entire thread as it may not be > finished processing legitimate cURL processes when you send the kill > switch. > > Thoughts? This could be caused by a bad domain name causing a dns to take a long time... if you install the c-ares library and recompile libcurl you can at least select and get activity while dns is resolving... -- Posted via http://www.ruby-forum.com/.