From: jjh-ruby-talk@... Date: 2003-12-03T04:06:15+09:00 Subject: Re: TCP/IP in Ruby >>>>> "BCoish" == BCoish writes: Sorry for taking so long to reply. BCoish> First, thanks for the speedy response! Second, I modified the BCoish> source per your suggestions, but without success. This is now BCoish> the code I'm running: [...] BCoish> Even if I break s.gets.upcase down into it's constituent parts BCoish> the problem persists. Any other ideas? (I'm fresh out) :) Have you tried doing an explicit flush on the socket? So you would have the following? # CLIENT.RB # ========= require 'socket' s=TCPSocket.new("localhost", ARGV[0]) s.write("test\n") s.flush puts s.gets s.close() # SERVER.RB # ========= require "socket" gs = TCPserver.open(0) printf("server is on port %d\n", gs.addr[1]) s = gs.accept line = s.gets puts line s.write(line.upcase) s.flush s.close BCoish> Perhaps something in the actual implimentation is the same BCoish> everywhere else except for OpenVMS. Hmm, wouldn't be the first BCoish> time, but it is a pain. :) I don't have access to an OpenVMS machine myself so I'm just throwing out ideas here. enjoy, -jeremy