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

Reply via email to