On Wed, Apr 04, 2007 at 05:37:40AM +0900, Alex MacCaw wrote:
> How do I stop the TCPServer 'locking up' when I call accept?
> I'm trying to build a passive ftp server.

Start a new thread for each incoming connection.

There's example code (a dummy POP3 server) at
http://www.rubygarden.org/ruby?SingletonTutorial

... except RubyGarden seems to be down again, so try entering this URL in
the waybackmachine at www.archive.org

Regards,

Brian.