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

Feat/streaming http #10

Merged
merged 2 commits into from
Aug 20, 2018
Merged

Feat/streaming http #10

merged 2 commits into from
Aug 20, 2018

Conversation

hsanjuan
Copy link
Collaborator

No description provided.

Currently, our round-tripper assumed that requests and response's bodies
were fully read within the function. It closed the stream (connection) as
soon as it returned.

This caused streaming requests to fail, as it managed to close the
connection before the response body was fully read.

This commit closes the connection only after the response's body is read
by the user.

It also writes the request in a separate go-routine, so that it does not
have to be fully written to start reading the response.
@hsanjuan hsanjuan self-assigned this Aug 20, 2018
@hsanjuan hsanjuan merged commit 403189f into master Aug 20, 2018
@hsanjuan hsanjuan deleted the feat/streaming-http branch August 20, 2018 15:06
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.

1 participant