cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

From: Daniel Stenberg <daniel_at_haxx.se>
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
error.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET