Zhukov Pavel
6/24/2008 7:11:00 AM
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
<shortcutter@googlemail.com> wrote:
> 2008/6/22 gberz3 <gberz3@gmail.com>:
>> 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
>
>