You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring a Netty HTTP client to use a proxy, I would have expected the headers callback specified in the ProxyProvider to be called only during the initial CONNECT request to the proxy server and that after the tunnel was created there would be no need to call the headers callback. Is my understanding on the proxy correct or am I completely off base here?
Expected Behavior
The httpHeaders method to be called only when creating the tunnel to the Proxy.
Actual Behavior
The httpHeaders method is ran for every request the httpClient makes.
Steps to Reproduce
Configure HTTP Client with a Proxy like this. When making requests observe that the httpHeaders method is ran for each request.
final var httpClient = HttpClient.create().proxy(proxy -> proxy.type(ProxyProvider.Proxy.HTTP).host(proxyUrl).port(proxyPort).httpHeaders(headers -> {
System.out.println("in headers");
//headers.add("Proxy-Authorization", "Negotiate " + getKerberosToken());
}).build());
Reactor version(s) used: Reactor Netty 1.1.22
The text was updated successfully, but these errors were encountered:
Configurations like address, headers, password are calculated just before sending the request.
If a configuration is changed a new connection pool will be created.
Fixes#3501
@matthew-js-porter The behaviour is intentional - if the token is changed then we need to discard the old pooled connections and start new connections with the new token.
I prepared a PR #3517 that will guarantee that we will invoke this just once though.
When configuring a Netty HTTP client to use a proxy, I would have expected the headers callback specified in the
ProxyProvider
to be called only during the initial CONNECT request to the proxy server and that after the tunnel was created there would be no need to call the headers callback. Is my understanding on the proxy correct or am I completely off base here?Expected Behavior
The
httpHeaders
method to be called only when creating the tunnel to the Proxy.Actual Behavior
The
httpHeaders
method is ran for every request the httpClient makes.Steps to Reproduce
Configure HTTP Client with a Proxy like this. When making requests observe that the
httpHeaders
method is ran for each request.The text was updated successfully, but these errors were encountered: