Skip to content

Support for Unix sockets in HTTP connect proxy#984

Merged
cretz merged 2 commits intotemporalio:masterfrom
cretz:http-proxy-unix-socket
Aug 22, 2025
Merged

Support for Unix sockets in HTTP connect proxy#984
cretz merged 2 commits intotemporalio:masterfrom
cretz:http-proxy-unix-socket

Conversation

@cretz
Copy link
Copy Markdown
Contributor

@cretz cretz commented Aug 22, 2025

What was changed

  • Added Unix socket/stream support
  • Built HTTP connect proxy utility for testing
    • Previously we had relied on the proxy tests in features, but that's too divorced from the code
    • Every HTTP connect proxy lib out there had dependency or other issues

Checklist

  1. Closes [Feature Request] Support Unix domain sockets for HTTP proxy #981

@cretz cretz requested a review from a team as a code owner August 22, 2025 12:51
Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I think you can save some boilerplate

Comment thread client/src/proxy.rs
@@ -72,7 +83,7 @@ impl HttpConnectProxyOptions {
struct OverrideAddrConnector(String);

impl Service<hyper::Uri> for OverrideAddrConnector {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you could get away with making OverrideAddrConnector generic over AsyncRead + AsyncWrite + Connection and not need the enum / implementations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, though there is added value in ProxyStream enum in that I use it in my homemade HTTP proxy server in test utils.

@cretz cretz merged commit eb74c70 into temporalio:master Aug 22, 2025
66 of 70 checks passed
@cretz cretz deleted the http-proxy-unix-socket branch August 22, 2025 20:17
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.

[Feature Request] Support Unix domain sockets for HTTP proxy

2 participants