From: Bill Atkins Date: 2005-01-07T01:58:11+09:00 Subject: Re: Killing ftp connection in ruby Have you tried killing the thread? Bill On Fri, 7 Jan 2005 01:48:38 +0900, Michal Koudelka 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"