cURL / Mailing Lists / curl-library / Single Mail


Re: OPENSOCKETFUNCTION hook not called for all socket creations on Windows

From: Daniel Stenberg <>
Date: Wed, 14 Dec 2011 23:14:25 +0100 (CET)

On Wed, 14 Dec 2011, Christian Hgele 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?


List admin:
Received on 2011-12-14