diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2016-12-29 19:18:45 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2016-12-30 13:32:03 +0900 |
commit | be97d9dbf01067a75a6d21ee25b98c4f197ee3f6 (patch) | |
tree | 141f5faffe44c30400f9def86f1fa28a2b555c94 | |
parent | 217893ca1325efb903aab4519fc461f8f105e674 (diff) | |
download | curl-be97d9dbf01067a75a6d21ee25b98c4f197ee3f6.tar.gz curl-be97d9dbf01067a75a6d21ee25b98c4f197ee3f6.tar.bz2 curl-be97d9dbf01067a75a6d21ee25b98c4f197ee3f6.zip |
[P161227-02691, P161220-01444] Force ongoing connections to close in close_all_connections()submit/tizen_unified/20170308.100411submit/tizen/20161230.055600accepted/tizen/wearable/20170101.224026accepted/tizen/unified/20170309.035036accepted/tizen/tv/20170101.224009accepted/tizen/mobile/20170101.223952accepted/tizen/ivi/20170101.224045accepted/tizen/common/20161230.123828
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>
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index 8e4091687..a085ca9d3 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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); |