cURL / Mailing Lists / curl-library / Single Mail


Re: unexpected intermittent "couldn't connect to host" error

From: Dan Fandrich <>
Date: Mon, 21 Apr 2008 13:09:04 -0700

On Mon, Apr 21, 2008 at 12:45:29PM -0700, Vijay Mani wrote:
> I did a netstat -abn, and noticed that upto were used,
> and 5000 is the default maximum for ephemeral ports in windows.
> And given that the timewait before these ports are released is 4
> minutes. I think that's what is causing my problems.

Makes sense. If you can convince the HTTP server to enable persistent
connections then you avoid this problem altogether.

> Do you have any recommendations on sniffers that have loopback support
> for windows?

Sounds like you have probably hit on the answer already. Wireshark is
the standard answer here, except that I'm not convinced that it can handle
the loopback port.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-21