curl-library
Re: OPENSOCKETFUNCTION hook not called for all socket creations on Windows
Date: Wed, 14 Dec 2011 23:14:25 +0100 (CET)
On Wed, 14 Dec 2011, Christian Hägele wrote:
> The needed code modification would only change an implementation detail. No
> API would break. It only guarantees that the CURLMOPT_SOCKETFUNCTION is
> called with the CURL_POLL_REMOVE action before the socket is closed via
> closesocket or the CURLOPT_CLOSESOCKETFUNCTION. Right now it sometimes works
> in this order, too, but not guaranteed. This behavioral change should not
> break any existing applications using the multi-api.
Hm, yes we can do that! Thinking about it further, I believe c-ares even
provides the necessary functionality to allow us to do it for that as well...
Are you interested in taking a stab at making it reality?
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-14