cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 30 Apr 2010 08:56:16 +0200 (CEST)

On Fri, 30 Apr 2010, Rahul R wrote:

> By any chance, can this be a server issue ? I think this a client side
> problem.

Only good old debugging can tell. Check what goes over the wire. Check what
the client does (strace equivalent).

> I am not able to understand one thing - I am creating new handle for every
> request and using the handle for only a single request. Then how do i get
> Address Already in use error ?

I can't explain that either. Only options that would bind the source end to
something should risk that and you didn't mention using any such.

> libCurl will establish only single socket connection in this scenario, right
> ? Any scenario where libCurl tries to create one more connection to the same
> host(for a single request) ?

If you use authentication or follow redirects etc it might do more than one.
Using VERBOSE will of course tell if it does.

-- 
  / 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-30