cURL / Mailing Lists / curl-library / Single Mail


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

From: Daniel Stenberg <>
Date: Wed, 21 Dec 2011 11:14:44 +0100 (CET)

On Wed, 14 Dec 2011, Poul Thomas Lomholt wrote:

> on Windows, libcurl does not seem to honor the CURLOPT_OPENSOCKETFUNCTION
> hook for the 'dummy_sock' socket created in init_resolve_thread() function.

Hi again,

I've written up a patch for this problem. See the attached file.

I don't have or develop on Windows so I haven't been able to actually test or
even build this code to verify that it actually works as intended. Let me know
how it works and what furthre tweaks we need to do!


List admin:

Received on 2011-12-21