From: Tom Reilly Date: 2004-10-10T01:12:02+09:00 Subject: FTP Server Questioin The following is a slight modification of the ftp server example in programming ruby. require 'socket' q = 0 server = TCPServer.new('localhost', 800) while (session = server.accept) q += 1 #________________________________________ puts "Request: #{session.gets}" #________________________________________ session.print "ret info #{q}\n" session.close end The following is a simple client I wrote. require 'socket' t = TCPSocket.new('localhost', 800) #___________________________ t.print "TxxxxT" #___________________________ rslt = t.gets p rslt t.close I am using windows 2000. If I run the programs with the instruction between the lines commented out, they work fine. If I run them the way they are written, then both lock up. Could anyone tell me why? Or what the fix might be? Thanks Tom