Christophe Broult <cbroult / sapient.com> writes: > I did not look at the mentionned patch but a few month ago while I > was using the telnet module, I had to append '\r' of the each of the > sent/expected string > to have a working session when accessing a telnet running on a Microsoft > platform. Note that systematically adding this extra character did not > prevent me from successfully using a telnet session hosted on Unix. Note > also I also had to add this extra '\r' when doing the same thing in Java. > > I had meant to send a patch to the 'net/telnet.rb' maintainer but I have not > done it so far:-( I didn't see that particular '\r' problem in the current (ruby-1.6.4) net/telnet under Solaris, Linux, and WinNT, although it still might show up in other contexts than those I was testing. My patch has to do with the fact that the data received from the remote session was dropped in the `waitfor' method when not running in Telnetmode, and this would cause `waitfor' to wait forever (or until it times out) in that case > Christophe > >> -----Original Message----- >> From: Lloyd Zusman [mailto:ljz / asfast.com] >> Sent: Tuesday, August 07, 2001 4:32 PM >> To: ruby-talk / ruby-lang.org >> Subject: [ruby-talk:19308] Re: PATCH: fixed bug in "waitfor" in >> net/telnet.rb >> >> >> Quoting Tobias Reif <tobiasreif / pinkjuice.com>: >> >> > Lloyd, >> > >> > Net:http connections seem to hang sometimes too; can you >> > fix that too? >> >> I'll take a look at it if I have some time soon, but >> no promises. I'm just a random ruby user, and I >> happened to need to use the Net::Telnet module today. >> This is how I came to notice the problem, and why I >> then fixed it. >> >> I imagine that hanging http connections would be much >> harder to debug than telnet sessions, since some of >> the hanging might very well be due to vagaries of the >> httpd server, its site, the specific pages accessed, >> etc. >> >> Could you post some code which reliably demonstrates the >> Net::Http problems that you're referring to? Perhaps >> one of the readers here might have some ideas as to what >> the problem would be, and what would have to be done >> to Net::Http in order to fix it. >> >> >> > Tobi >> >> -- >> Lloyd Zusman >> ljz / asfast.com >> > -- Lloyd Zusman ljz / asfast.com