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.
------_ extPart_001_01C0F908.84EAAA40
Content-Type: text/plain;
charset so-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 et::HTTP.new("quote.pathfinder.com",
80, "proxy", 911)
body athfinder.get(path,
{'Host' quote.pathfinder.com'})
rescue
body il
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" <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?
------_ extPart_001_01C0F908.84EAAA40
Content-Type: text/html;
charset so-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [ruby-talk:16633] Re: TCPSocket & Win2k: Further News</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>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:</FONT></P>
<P> <FONT SIZE=2>begin</FONT>
<BR> <FONT SIZE=2>puts "Getting " + path</FONT>
<BR> <FONT SIZE=2>pathfinder = Net::HTTP.new("quote.pathfinder.com", 80, "proxy", 911)</FONT>
<BR> <FONT SIZE=2>body = pathfinder.get(path, {'Host'=>'quote.pathfinder.com'})</FONT>
<BR> <FONT SIZE=2>rescue</FONT>
<BR> <FONT SIZE=2>body = nil</FONT>
<BR> <FONT SIZE=2>puts "Error occurred for #{@ticker} " + $!</FONT>
<BR> <FONT SIZE=2>retry</FONT>
<BR> <FONT SIZE=2>end</FONT>
</P>
<P><FONT SIZE=2>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...</FONT></P>
<P><FONT SIZE=2>Will</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Dave Thomas [mailto:Dave / PragmaticProgrammer.com]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, June 19, 2001 2:05 PM</FONT>
<BR><FONT SIZE=2>To: ruby-talk / ruby-lang.org; ruby-talk / netlab.co.jp</FONT>
<BR><FONT SIZE=2>Subject: [ruby-talk:16633] Re: TCPSocket & Win2k: Further News</FONT>
</P>
<BR>
<P><FONT SIZE=2>"Sean Carley" <seanacarley / hotmail.com> writes:</FONT>
</P>
<P><FONT SIZE=2>> Problem: TCPSocket.new host, port fails with </FONT>
<BR><FONT SIZE=2>> . . . :in `new': Invalid argument - "connect(2)" (Errno::EINVAL)</FONT>
</P>
<P><FONT SIZE=2>Is there a way to find out if this is a known cygwin bug?</FONT>
</P>
</BODY>
</HTML>
------_ extPart_001_01C0F908.84EAAA40--