From: Minero Aoki Date: 2001-08-09T22:08:42+09:00 Subject: [ruby-talk:19426] Re: PATCH: fixed bug in "waitfor" in net/telnet.rb Hi Tobias, In mail "[ruby-talk:19423] Re: PATCH: fixed bug in "waitfor" in net/telnet.rb" Tobias Reif wrote: > ruby -rsocket -e 'TCPSocket.open(nil,80)' > -e:1:in 'open': wrong argument type nil (expected String) (TypeError) > from -e:1 Hmmm... still I do not sure why your script hang. Is there some server on port 80 (and it's not web server)? > But: If I'm downloading from the web, and a nil domain slips in, I don't > want to connect to localhost. If I want to connect to localhost, I write > 'localhost'. Also: if there's no localhost, I would like to get a nice > error message. agreed. I must change it. Minero Aoki