cURL / Mailing Lists / curl-library / Single Mail


Re: Couldn't Connect Error - Address already in use

From: Daniel Stenberg <>
Date: Wed, 28 Apr 2010 23:04:47 +0200 (CEST)

On Wed, 28 Apr 2010, Rahul R wrote:

> I am frquently getting Couldn't connect error even though the server is up.
> LibCurl debug logs show the error "Address already in use".
> I am using easy interface and new handle is used for every new request.Only
> when i get redirect response i am reusing the same handle to connect to the
> redirected host.

Can you show us the source code for a complete little application that repeats
this problem?

> This error("Address already in use") occurs if an application attempts to
> bind a socket to an IP address/port that has already been used for an
> existing socket, or a socket that was not closed properly, or one that is
> still in the process of closing.

Yes, and since you haven't told us about what libcurl options you use (and we
assume you're talking plain HTTP?), it is very hard to say much more about the

List admin:
Received on 2010-04-28