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

Document closing behavior when using http1x #146

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Conversation

erickpintor
Copy link
Contributor

Because reads are blocking and, by definition, a stream will remain open until either server or client closes them, we don't seem to have a good mechanism to ensure no bytes are left unread from the HTTP response body when the client decides to terminate the stream. On the other hand, this issue only seems to affect HTTP/1.x connections.

I've validated that the go driver prefers HTTP/2.x in prod so, I'm inclined to document this behaviour in case anyone is using it behind an HTTP/1.x proxy instead of trying some complex/unreliable mechanism to ensure clean connection termination at this point.

@erickpintor erickpintor merged commit be555c2 into streaming Apr 26, 2024
4 checks passed
@erickpintor erickpintor deleted the streaming-http1 branch April 26, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants