]> git.ipfire.org Git - thirdparty/curl.git/commit
closesocket: call multi socket cb on close even with custom close
authorFrank Meier <frank.meier@ergon.ch>
Sun, 15 Mar 2015 12:24:26 +0000 (13:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Mar 2015 12:26:03 +0000 (13:26 +0100)
commit9063a7f853a35d2ca9dfe8ac39f4649720081fb3
tree1f15ba32bd7abc4dc0f607a2760cebc8bed29536
parent851c29269bbc5958cc43f2ae4f1c22eb00fa98f6
closesocket: call multi socket cb on close even with custom close

In function Curl_closesocket() in connect.c the call to
Curl_multi_closed() was wrongly omitted if a socket close function
(CURLOPT_CLOSESOCKETFUNCTION) is registered.

That would lead to not removing the socket from the internal hash table
and not calling the multi socket callback appropriately.

Bug: http://curl.haxx.se/bug/view.cgi?id=1493
lib/connect.c