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;
	charsetso-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;
	charsetso-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 &amp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>begin</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>puts &quot;Getting &quot; + path</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>pathfinder = Net::HTTP.new(&quot;quote.pathfinder.com&quot;, 80, &quot;proxy&quot;, 911)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>body = pathfinder.get(path, {'Host'=&gt;'quote.pathfinder.com'})</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>rescue</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>body = nil</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>puts &quot;Error occurred for #{@ticker} &quot; + $!</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>retry</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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 &amp; Win2k: Further News</FONT>
</P>
<BR>

<P><FONT SIZE=2>&quot;Sean Carley&quot; &lt;seanacarley / hotmail.com&gt; writes:</FONT>
</P>

<P><FONT SIZE=2>&gt; Problem:&nbsp; TCPSocket.new host, port fails with </FONT>
<BR><FONT SIZE=2>&gt;&nbsp; . . . :in `new': Invalid argument - &quot;connect(2)&quot; (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--