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

Fix net/http: request canceled #2

Merged
merged 1 commit into from
Nov 8, 2017
Merged

Conversation

ayufan
Copy link
Contributor

@ayufan ayufan commented Nov 7, 2017

Fixes problem outlined in this issue: https://gitlab.com/gitlab-org/gitlab-workhorse/issues/153

This happens, because if we re-use http.Request and this request did not yet finish we will end-up with an inability to cancel request, thus the http.Response will be marked as canceled.

We have to always clone http.Request and http.Header.

@ayufan
Copy link
Contributor Author

ayufan commented Nov 8, 2017

@jfbus Any update?

@jfbus jfbus merged commit 32cf48c into jfbus:master Nov 8, 2017
@jfbus
Copy link
Owner

jfbus commented Nov 8, 2017

here you are. thanks for the PR

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