[P161227-02691, P161220-01444] Force ongoing connections to close in close_all_connec... 06/107806/1 accepted/tizen/common/20161230.123828 accepted/tizen/ivi/20170101.224045 accepted/tizen/mobile/20170101.223952 accepted/tizen/tv/20170101.224009 accepted/tizen/unified/20170309.035036 accepted/tizen/wearable/20170101.224026 submit/tizen/20161230.055600 submit/tizen_unified/20170308.100411
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 29 Dec 2016 10:18:45 +0000 (19:18 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 30 Dec 2016 04:32:03 +0000 (13:32 +0900)
Bug: https://curl.haxx.se/mail/lib-2016-10/0011.html
Bug: https://curl.haxx.se/mail/lib-2016-10/0059.html

Change-Id: I6e015569958cc0da3bd9b03f17d4b32d475ebd0e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
lib/multi.c

index 8e40916..a085ca9 100644 (file)
@@ -42,6 +42,7 @@
 #include "multihandle.h"
 #include "pipeline.h"
 #include "sigpipe.h"
+#include "connect.h"
 /* The last 3 #include files should be in this order */
 #include "curl_printf.h"
 #include "curl_memory.h"
@@ -2168,6 +2169,7 @@ static void close_all_connections(struct Curl_multi *multi)
     conn->data->easy_conn = NULL; /* clear the easy handle's connection
                                      pointer */
     /* This will remove the connection from the cache */
+    connclose(conn, "kill all");
     (void)Curl_disconnect(conn, FALSE);
     sigpipe_restore(&pipe_st);