]> granicus.if.org Git - curl/commit
pause: when changing pause state, update socket state
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Mar 2018 11:03:52 +0000 (12:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Mar 2018 22:41:55 +0000 (23:41 +0100)
commit2404aa080e1cc62634b44091f58737d2c618e361
tree0d5087c816b3a62d0b124f6c19cf8ecc6a31367f
parent9434194be8cfc896b416ea17d1867725990f8bc9
pause: when changing pause state, 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
Fixes #2393
Closes #2391
lib/easy.c
lib/multi.c
lib/multiif.h