From: Will Sobel Date: 2001-06-20T06:34:45+09:00 Subject: [ruby-talk:16636] Re: TCPSocket & Win2k: Further News This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0F908.84EAAA40 Content-Type: text/plain; charset="iso-8859-1" Just to confirm the problem, I have run into the same issue on NT 4.0 SP5. It occurs occasionally when I create multiple threads trying to do the following: begin puts "Getting " + path pathfinder = Net::HTTP.new("quote.pathfinder.com", 80, "proxy", 911) body = pathfinder.get(path, {'Host'=>'quote.pathfinder.com'}) rescue body = nil puts "Error occurred for #{@ticker} " + $! retry end As you can see my solution is even less robust (since this is play code), I just retry. I also tracked it down to cygwin, but did not go any further... hope this helps... Will -----Original Message----- From: Dave Thomas [mailto:Dave@PragmaticProgrammer.com] Sent: Tuesday, June 19, 2001 2:05 PM To: ruby-talk@ruby-lang.org; ruby-talk@netlab.co.jp Subject: [ruby-talk:16633] Re: TCPSocket & Win2k: Further News "Sean Carley" writes: > Problem: TCPSocket.new host, port fails with > . . . :in `new': Invalid argument - "connect(2)" (Errno::EINVAL) Is there a way to find out if this is a known cygwin bug? ------_=_NextPart_001_01C0F908.84EAAA40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ruby-talk:16633] Re: TCPSocket & Win2k: Further = News

Just to confirm the problem, I have run into the same = issue on NT 4.0 SP5. It occurs occasionally when I create multiple = threads trying to do the following:

        =         begin
        =         =         puts = "Getting " + path
        =         =         pathfinder = =3D Net::HTTP.new("quote.pathfinder.com", 80, = "proxy", 911)
        =         =         body =3D = pathfinder.get(path, {'Host'=3D>'quote.pathfinder.com'})
        =         rescue
        =         =         body =3D = nil
        =         =         puts = "Error occurred for #{@ticker} " + $!
        =         =         retry
        =         end

As you can see my solution is even less robust (since = this is play code), I just retry. I also tracked it down to cygwin, but = did not go any further... hope this helps...

Will

-----Original Message-----
From: Dave Thomas [mailto:Dave@PragmaticProgra= mmer.com]
Sent: Tuesday, June 19, 2001 2:05 PM
To: ruby-talk@ruby-lang.org; = ruby-talk@netlab.co.jp
Subject: [ruby-talk:16633] Re: TCPSocket & = Win2k: Further News


"Sean Carley" = <seanacarley@hotmail.com> writes:

> Problem:  TCPSocket.new host, port fails = with
>  . . . :in `new': Invalid argument - = "connect(2)" (Errno::EINVAL)

Is there a way to find out if this is a known cygwin = bug?

------_=_NextPart_001_01C0F908.84EAAA40--