[darcs-users] [patch207] Fix hscurl.c when URL is downloaded duri... (and 1 more)
Dmitry Kurochkin
bugs at darcs.net
Fri Apr 16 00:44:40 UTC 2010
New submission from Dmitry Kurochkin <dmitry.kurochkin at gmail.com>:
2 patches for repository http://darcs.net:
Fri Apr 16 02:47:39 MSD 2010 Dmitry Kurochkin <dmitry.kurochkin at gmail.com>
* Fix hscurl.c when URL is downloaded during the first call to curl_multi_perform.
Turns out that the first call to curl_multi_perform() can fetch the URL or
result in error. I can easily reproduce this using HTTP server on localhost.
This means that situation when running_handles is zero is valid, so remove the
error and handle it correctly.
Fri Apr 16 04:34:36 MSD 2010 Dmitry Kurochkin <dmitry.kurochkin at gmail.com>
* URL: keep notify MVars in a single place.
This will prevent deadlocks when we wait for one MVar and notification is done
through another. Such situations can happen when one URL is requested several
times during a short period of time.
----------
files: fix-hscurl_c-when-url-is-downloaded-during-the-first-call-to-curl_multi_perform_.dpatch, unnamed
messages: 10736
nosy: darcs-users, dmitry.kurochkin
status: needs-review
title: Fix hscurl.c when URL is downloaded duri... (and 1 more)
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch207>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-hscurl_c-when-url-is-downloaded-during-the-first-call-to-curl_multi_perform_.dpatch
Type: text/x-darcs-patch
Size: 35502 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100416/b435b28f/attachment-0001.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20100416/b435b28f/attachment-0001.diff>
More information about the darcs-users
mailing list