Skip to content

Conversation

jakecoffman
Copy link

This fixes the inability to reuse connections by only setting the Connection: close header when the client or remote server requests it.

This also pulls in changes by @hmarr in #333 to explicitly terminate the connection instead of relying on an EOF from the client.

This fixes the inability to reuse connections by only setting the Connection: close header when the client or remote server requests it.

This also pulls in changes by @hmarr to explicitly terminate the connection instead of relying on an EOF from the client.

Co-authored-by: Harry Marr <harry.marr@gmail.com>
@jeffwidman
Copy link
Contributor

@elazarl Sorry to bother, but I noticed this one's been floating for several months... I know the :dependabot: team currently uses a fork of Goproxy incorporating the change in #333 (which this PR includes) internally so it's already seen some prod traffic with no issues.

Any chance you could take a look? I'm sure they'd like to switch back to using upstream instead of a fork.

@jakecoffman
Copy link
Author

We actually found this change might be problematic and we're testing without it to compare. So hold off on merging for now. Thanks @jeffwidman!

@jeffwidman
Copy link
Contributor

Oh interesting. Since this PR includes two changes, are you observing the problem with #333 or with the other change in this PR?

@elazarl
Copy link
Owner

elazarl commented Dec 16, 2023 via email

@jakecoffman
Copy link
Author

The problem is the change in #333. We observed write: connection reset by peer when doing Bundler updates which went away when we removed those lines in #333.

Now that we're running without that change we're seeing less timeouts.

I think there are some changes in this PR that we might still want, like not setting the Close header after each request, but I'd like to run it in Dependabot production for a bit to ensure it's good first.

You can close #333!

@jakecoffman jakecoffman closed this Jan 2, 2024
@jeffwidman
Copy link
Contributor

I think there are some changes in this PR that we might still want, like not setting the Close header after each request, but I'd like to run it in Dependabot production for a bit to ensure it's good first.

@jakecoffman what's the word on these additional changes? Are any of them worth upstreaming?

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.

3 participants