Skip to content

Keep-alive connection not kept on 301 w/ host change #1268

@MikeN123

Description

@MikeN123

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:

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):

Not sure about the correct fix, still trying to figure that out.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions