| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
Re: Issues in constraining number of open connections with curl multi interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 Jan 2012 15:00:24 +0100 (CET)
On Fri, 6 Jan 2012, Mukul Kedare wrote:
> typedef struct easy_data
This seems to make the easy_handle and the socket rather tightly associated
> /*****In open callback, we are opening new socket if edata->sockfd =-1,
> curl_socket_t opensocket (void *clientp, curlsocktype purpose, struct
This looks very wrong. When libcurl asks to get a new socket, you need to give
> 2. For a single FD , we see close invoked multiple times in succession
That sounds weird. We have test cases for this AND the open/close callbacks
> We suspect that libcurl is caching and reusing the sockfds for the same easy
I really don't think so. I think your re-use of sockets you're not supposed to
> To solve this issue we tried to use close callback for just notifying us
This doesn't make sense to me. The callback should do the close, not libcurl,
> Seems like there is some caching of fds in libcurl, eventhough we manage
The caching of fds is done in the nature of the connection pool. Connections
> We also noticed that, Curl_closesocket return value is not fetched and acted
I don't understand. When the socket is closed, the file handle is gone and
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-01-06 These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info