From: Jos Backus Date: 2004-10-20T08:51:48+09:00 Subject: Re: TCPSocket.new(host, port).readline hangs on Windows On Wed, Oct 20, 2004 at 08:39:40AM +0900, nobu.nokada@softhome.net wrote: > Hi, > > At Wed, 20 Oct 2004 07:31:32 +0900, > Jos Backus wrote in [ruby-core:03538]: > > With recent CVS versions (both ruby_1_8 branch and HEAD), the following > > command hangs on Windows 2003 Server: > > > > ruby -rsocket -e 'p TCPSocket.new("myhost", port).readline' > > > > The new succeeds but the readline just hangs. > > What's the port? Does the peer send a line immediately? port is 22 in my setup. A line is sent immediately; telnet.exe confirms this and psftp works against the server, too. The line (the SSHD banner string) ends in a newline. > -- > Nobu Nakada -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'