Skip to content

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

Open
civodul wants to merge 1 commit into
libgit2:mainfrom
civodul:proxy-reconnect
Open

http: Close the proxy connection in ‘reset_parser’.#7082
civodul wants to merge 1 commit into
libgit2:mainfrom
civodul:proxy-reconnect

Conversation

@civodul

@civodul civodul commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

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

civodul commented Jun 7, 2025

Copy link
Copy Markdown
Contributor Author

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

2 participants