Skip to content

HTTPS client is not reading all the data from socket #63030

Closed Answered by rlubos
d-makarenko asked this question in General
Discussion options

You must be logged in to vote

Hi @d-makarenko, it seems you're right, we should still call recv() after getting ZSOCK_POLLHUP, so it looks like a bug on the HTTP client side. On second thought, I think we may even skip the ZSOCK_POLLHUP at all, as it should always be accompanied with ZSOCK_POLLIN, and leave it up to recv() to detect connection close. Would you be willing to send a PR to fix that?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@d-makarenko
Comment options

Answer selected by d-makarenko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants