Bill Atkins
1/6/2005 4:58:00 PM
Have you tried killing the thread?
Bill
On Fri, 7 Jan 2005 01:48:38 +0900, Michal Koudelka
<mithrandir2003cz@gmail.com> wrote:
> Hi,
>
> I have a service written in ruby, which uploads large files to remote
> ftp server. This service in controlled throught web interface.
>
> When upload is launched, single thread is created to serve them
> (chanage the dir at remote server and put the file, rescue all
> possible and few unpossible exceptions).
>
> Now, sometimes I need to terminate running upload. I tryed to call
> close method to ftp connection and rescue relevant Exception.
>
> But, when upload is runing and I try to close the connection, program
> wait until transfer is finished and then connection is closed.
>
> Does somebody have an idea how to close connection during transfer?
>
> Thanx,
>
> Mithrandir
>
>
--
$stdout.sync = true
"Just another Ruby hacker.".each_byte do |b|
('a'..'z').step do|c|print c+"\b";sleep 0.007 end;print b.chr
end; print "\n"