]> granicus.if.org Git - curl/commit
multi: force connections to get closed in close_all_connections
authorDaniel Stenberg <daniel@haxx.se>
Fri, 21 Oct 2016 09:03:10 +0000 (11:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 22 Oct 2016 14:10:57 +0000 (16:10 +0200)
commit6290c3c26bada49229d16ab465c8f964b5e9a868
tree393d87ec8af229607f4088362cf8fce3f444872c
parent406506ca928eb7a787489e9670bc2da3506b2499
multi: force connections to get closed in close_all_connections

Several independent reports on infinite loops hanging in the
close_all_connections() function when closing a multi handle, can be
fixed by first marking the connection to get closed before calling
Curl_disconnect.

This is more fixing-the-symptom rather than the underlying problem
though.

Bug: https://curl.haxx.se/mail/lib-2016-10/0011.html
Bug: https://curl.haxx.se/mail/lib-2016-10/0059.html

Reported-by: Dan Fandrich, Valentin David, Miloš Ljumović
lib/multi.c