From: moonerent@... (Rick) Date: 2002-02-20T22:38:48+09:00 Subject: How do I get the GET from gets in an open socket? Hello, I have a Flash movie using xmlSocket to connect to a Ruby server. Flash passes in testUser. Ruby returns myList. So far I am unable to parse session.gets (the only place I am able to find testUser) until session.close is called, but session.close isn't being called until the user closes their flash movie, hence the problem. How do I parse session.gets without session.close? Is there a different approach all together? Thank you in advance. Rick ruby 1.6.5 (2001-09-19) [i386-cygwin] Win2K server require 'socket' server = TCPServer.new('127.0.0.1',5190) while (session = server.accept) begin thisUser = session.gets thisUser = thisUser.scan(/(.*?)<\/user>/).to_s session.print "#{thisUser}\0" ensure session.close if session #puts "sesson closed" end end