Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pause: when changing pause state, update socket state #2391

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Mar 16, 2018

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

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
@pprindeville
Copy link
Contributor

Fixes issue #2393.

@bagder bagder closed this in 2404aa0 Mar 16, 2018
@bagder
Copy link
Member Author

bagder commented Mar 16, 2018

Thanks!

@bagder bagder deleted the bagder/pause-update-socket-state branch March 16, 2018 22:42
@pprindeville
Copy link
Contributor

Will this be in 7.60?

@bagder
Copy link
Member Author

bagder commented Mar 17, 2018

Yes. All commits in the master branch at the time of the next release will be included!

@pprindeville
Copy link
Contributor

This issue might not be completely resolved.

I noticed that if I pause a socket, I might still end up getting CURLMSG_DONE on the paused connection from curl_multi_info_read()... and as a result, the last bit of data might never be delivered.

Is there a way to be sure that (a) the CURLMSG_DONE isn't delivered on a paused connection, and (b) all of the data is drained before that happens?

It's not intended to be out-of-band, is it?

@bagder
Copy link
Member Author

bagder commented Mar 23, 2018

I'd say that's a related by different issue though. Please file a new issue with details. Adding comments to old issues is rarely helping...

@lock lock bot locked as resolved and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants