Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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