From: Benedikt Mueller Date: 2009-07-13T22:13:00+09:00 Subject: Re: TCPServer — send and recieve simultaneous All 3 tips didn't help :( I made it in a standalone script for now: require 'socket' begin rescue EPIPE sfm=TCPSocket.open('localhost', 54311) # while line = sfm.read(100) sfm.puts "info %a : %t - %R\r\n" # sfm.close_write bla = sfm.read(100) puts bla sfm.close end I ran it with -r debug and here's it: ruby -r debug shellfm.rb Debug.rb Emacs support available. shellfm.rb:1:require 'socket' (rdb:1) n shellfm.rb:2:begin (rdb:1) n You can see: It didn't came until the puts anyway. -- Posted via http://www.ruby-forum.com/.