From: Vince Forgetta Date: 2008-04-15T03:16:10+09:00 Subject: Re: create server ------=_Part_2296_26419265.1208196968338 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Figured it out. I need to sleep between successive calls to TCPSocket.new (see simple example below): require 'socket' for i in 0..20 session = TCPSocket.new('localhost', '1234') session.puts "test" dat = session.gets p dat session.close sleep 0.5 end Using 'sleep 0' cause the server to hang. Is there a way around this? Vince On Mon, Apr 14, 2008 at 2:05 PM, Vince Forgetta wrote: > Hi all, > > I am interested in using GServer but the server hangs after ~5-10 attempts > (per max connections to allow). Example code I used is from Peter Coopers > book, Beginning Ruby From Novice to Professional: > > http://www.springerlink.com/content/ph5611n3q3uu0619/ > > Is this normal? > > Thanks. > > Vince > ------=_Part_2296_26419265.1208196968338--