Skip to content

Fix bug #74796: Requests through http proxy set peer name #18523

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: PHP-8.3
Choose a base branch
from

Conversation

bukka
Copy link
Member

@bukka bukka commented May 8, 2025

This issue happens because http wrapper sets peer_name but then does not
remove so it stays in the context. The fix removes the peer name from
the context after enabling crypto.

In addition to bug #74796, this also fixes bug #76196.

In addition it should be a final fix for those SOAP bugs:

bug #69783
bug #52913
bug #61463

@bukka bukka force-pushed the openssl_bug74796_http_proxy_peer_name branch from 34ae0fe to 9f08216 Compare May 8, 2025 21:31
@bukka bukka removed the ABI break label May 8, 2025
@bukka bukka changed the base branch from master to PHP-8.3 May 22, 2025 18:08
@bukka bukka force-pushed the openssl_bug74796_http_proxy_peer_name branch from 9f08216 to e4e9744 Compare May 22, 2025 18:29
This issue happens because http wrapper sets peer_name but then does not
remove so it stays in the context. The fix removes the peer name from
the context after enabling crypto.

In addition to bug #74796, this also fixes bug #76196.

In addition it should be a final fix for those SOAP bugs:

bug #69783
bug #52913
bug #61463
@bukka bukka force-pushed the openssl_bug74796_http_proxy_peer_name branch from e4e9744 to fb18b94 Compare May 23, 2025 10:50
@bukka bukka removed the ABI break label May 23, 2025
@bukka
Copy link
Member Author

bukka commented May 23, 2025

I have been debugging the Windows test failure which was due to the fact that it the server connection is closed immediately after write on Windows and then it's read by client, it produces error (it's probably related how pipes work on Windows). Syncing the comms is a bit tricky in this case as it can be driven just by client so for now I just added small delay before close which seems to work. It might need some revisiting if we see any related failures after this gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant