-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Redirect30xInterceptor tries to reuse a channel on a redirect if keep-alive is enabled, and tries to offer the channel to the pool if that is not possible due to a host change, see here:
Line 152 in 300a6c3
| channelManager.drainChannelAndOffer(channel, future, initialConnectionKeepAlive, initialPartitionKey); |
Unfortunately, that does not work, as NettyRequestSender.sendNextRequest() immediately clears the Channel attribute, which was a fix for another issue (#1059):
async-http-client/client/src/main/java/org/asynchttpclient/netty/request/NettyRequestSender.java
Line 473 in 300a6c3
| Channels.setAttribute(channel, null); |
Not sure about the correct fix, still trying to figure that out.