Skip to content

http: Close the proxy connection in ‘reset_parser’. #7082

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

civodul
Copy link
Contributor

@civodul civodul commented Jun 3, 2025

Fixes #7081

Previously the HTTP transport would fail to follow HTTP redirects to a different server when using a proxy because the proxy connection would be marked as “alive” even though the proxy had closed it following completion of the ‘CONNECT’ request to the initial server.

This patch ensures the proxy connection is closed so a fresh connection is later opened by ‘generate_connect_request’ when connecting to the target server.

Fixes libgit2#7081

Previously the HTTP transport would fail to follow HTTP redirects to a
different server when using a proxy because the proxy connection would
be marked as “alive” even though the proxy had closed it following
completion of the ‘CONNECT’ request to the initial server.

This patch ensures the proxy connection is closed so a fresh connection
is later opened by ‘generate_connect_request’ when connecting to the
target server.
@civodul
Copy link
Contributor Author

civodul commented Jun 7, 2025

Hmm I can't reproduce the Valgrind issues here. :-/

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.

HTTP redirects to a different server break when using a proxy
1 participant