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: Easy handles & threads

From: <choi_at_netlabs.org>
Date: Thu, 29 Jul 2004 10:17:20 -0700

Hi,

>>> "Got easy handle %X for thread %X", m_curlHandle, GetCurrentThreadId()
>>> Got easy handle 1C2BD40 for thread 680 *
>>> Got easy handle 1C2BD40 for thread 5E0 *
> ...
> I fail to understand how the resolver code can cause this major flaw.
> The handle is allocated with calloc() so I can't see any other
> possibility to return the same address than to have the first handle
> free()ed first...

you are right. I forgot to check if the handles were cleaned up, which
they of course were. Reading through sloppy code does that to you...

The crash turned out as expected to be caused by using the same curl
handles from different threads at the same time.

Thanks for your help anyways,
Matt
Received on 2004-07-29

These mail archives are generated by hypermail.

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

File upload with ASP.NET