|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1326306 ] Socket descriptor leak with libcurl-multi
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 20 Oct 2005 14:21:34 -0700
Bugs item #1326306, was opened at 2005-10-13 17:31
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Hi,
The following test code reproduces the problem:
#include <string.h>
int main(void)
curl_easy_handle = curl_easy_init();
CURLM *curl_multi_handle = curl_multi_init();
for (int i=0; i<2000; i++)
int running_handles=1;
while (running_handles)
if (running_handles)
select(maxFD+1, &readfds, &writefds,
curl_multi_remove_handle(curl_multi_handle,
Also,
I find that when libcurl experiences connection failure
Thanks,
-Amol.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Message:
I tried it the way you did it, and that didn't repro the problem.
It appears that in your case, the 10.* IPs point to non-
This problem can be reproduced if the 10.* IPs represent
Thanks,
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I ran it against this host name: bad10.haxx.se
It resolves to 5 IP addresses, one being 127.0.0.1 and the
(To make it bearable, I reduced the default connect timeout
What kind of "connection failures" do you get from the IP in
I modified your example to 1 - close both the easy and multi
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Message:
Did you run the test code against a hostname that has the
>
I will also look into this some more to send you more detail.
-Amol.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I fail to repeat this problem.
Can you figure out any further details? Like what socket or
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I'll look into it asap, but it might take a week or so. I
----------------------------------------------------------------------
Comment By: Amol Pattekar (pattekar)
Message:
Sorry, forgot to mention: I am using libcurl-7.14.1
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info