Skip to content

HTTP/2 client inside HTTP/1.1 proxy connection #3613

Closed Answered by metcoder95
levshkatov asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, see what you mean. Here what you want to do is to first connect to the Proxy and use that socket to do the requests in the second agent/dispatcher.

What I was suggesting was not to use the Agent and have an internal connect that goes to a Proxy, but actually the other way around.

On the ProxyAgent you pass a custom connect that connects to the proxy with H1 (using an Agent) and returns that socket to the connect callback so it can be reused across request. Similar to what ProxyAgent does to connect to the Proxy.

The error you are receiving seems to be related with you connecting with https but the proxy supporting only http.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@metcoder95
Comment options

@levshkatov
Comment options

@levshkatov
Comment options

@metcoder95
Comment options

Answer selected by levshkatov
@levshkatov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants