-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoadBalancedStreamingHttpConnection
doesn't need connect strategy (#…
…2274) Motivation: The `connectStrategy` propagated to `AbstractLBHttpConnectionFactory` should be used only for `newConnection` operation, but not for the conversions inside `LoadBalancedStreamingHttpConnection`. That strategy has to be taken from the `ExecutionContext` that takes into account all filters that are applied to a reserved connection. Modifications: - `LoadBalancedStreamingHttpConnection` uses a strategy from execution context instead of a `connectStrategy`; - Validate `protocolBinding` in `AbstractLBHttpConnectionFactory` before allocating `filterableConnectionFactory`; - Skip the merge of `connectionFactoryStrategy` with `ProxyConnectConnectionFactoryFilter` bcz we know the internal filters never block or modify the strategy; Result: `LoadBalancedStreamingHttpConnection` uses the correct strategy for conversions.
- Loading branch information
1 parent
7575fea
commit a09e56b
Showing
3 changed files
with
16 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters