You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
HttpClient xplat: Fix bugs in polling and callback logic
- On OSX, the read end of the pipe sometimes wakes up the poll
with a POLLOUT. Since we are interested in only reading on it,
scoping down to POLLIN prevents this from happening. Else we
attempt a read on it which fails
- CheckForCompletedTransfers was being unnecessarily called from the
socket callback. We are only interested in MSG_DONE after the socket
callback indicates removal. This will anyway wake up PollFunction which
calls CheckForCompletedTransfers. This race is also causing a seg fault
sometimes because curl_multi_socket_action has been called on an fd
that was getting cleaned up via curl_easy_cleanup (call sequence is
CurlSocketCallback --> CheckForCompletedTransfers --> EndRequest)
- Also removed some unnecessary CharSet attributes
cc: @stephentoub@davidsh@CIPop@SidharthNabar@pgavlin
0 commit comments