summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-03-16 12:03:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-03-16 12:03:52 +0100
commit26d3d2384b1aa336f7a2634c3c3068a46a8cfa52 (patch)
tree2d448cd4378981e28163ccc7a48ad0720c27972d /lib/multi.c
parentf5700ea88baa5baeb63b7cd42bd12fb03f4e0f4e (diff)
downloadcurl-bagder/pause-update-socket-state.tar.gz
pause: when changing pause state, update socket statebagder/pause-update-socket-state
Especially unpausing a transfer might have to move the socket back to the "currently used sockets" hash to get monitored. Otherwise it would never get any more data and get stuck. Easily triggered with pausing using the multi_socket API. Reported-by: Philip Prindeville Bug: https://curl.haxx.se/mail/lib-2018-03/0048.html
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 69df90288..2f139ab37 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -2421,6 +2421,12 @@ static void singlesocket(struct Curl_multi *multi,
data->numsocks = num;
}
+void Curl_updatesocket(struct Curl_easy *data)
+{
+ singlesocket(data->multi, data);
+}
+
+
/*
* Curl_multi_closed()
*