From: Zhukov Pavel Date: 2008-06-24T16:11:26+09:00 Subject: Re: Multiple HTTP Sockets or Threads for file uploads. you should use DRb with multi-process architecture since ruby uses green-threads, that should be much faster. On Tue, Jun 24, 2008 at 11:06 AM, Robert Klemme wrote: > 2008/6/22 gberz3 : >> I have a client for whom I developed a small application using Ruby >> and Curl to upload files to his file server (to and from Windows >> boxes). He now wants that application to have multiple sockets in >> order to upload more than one file at a time. I have no idea what >> course is the safest here. Do I simply create threads that run the >> "curl" command and let that be, > > You just need to fork multiple curl processes. > >> or do I try a library such as (http:// >> www.chilkatsoft.com/upload-ruby.asp) and go from there? I'm honestly >> not familiar with threading or chilkat. > > I do not know that lib. If it does provide multiple concurrent > uploads that's probably a good choice. > > If you were doing it in pure Ruby (i.e. using net/http) you could use threads. > > Kind regards > > robert > > -- > use.inject do |as, often| as.you_can - without end > >