cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl stuck with half-open connection

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 17 Apr 2009 21:54:18 +0200

"Joe Eggleston" <joe_at_arbor.net> wrote:

> I have a C program using the multi-interface to libcurl with libevent.
> I found it stuck with a half-open connection. By half-open I mean the
> connection was established, then the server box died, so there was no
> FIN, etc.

Then the connection is probably in CLOSE_WAIT. This is normal and nothing
libcurl should care about AFAICS. Why do yuo really care what netstat is saying?
If you're on Windows, you could use e.g. ActivePorts from SysInternals and kill
the connection.

--gv
Received on 2009-04-17