Skip to content

Proxy Server can not be used with connection pooling enabled #115

Closed
@charlesk40

Description

@charlesk40

I think this is related to how channels are cached.

You can reproduce this by calling AHC with proxy server enabled and then calling AHC without the proxy server enabled. (Important that this needs to be executed sequentially NOT in parallel)

Result is that the second AHC call grabs the cached Proxy server channel which is not correct. Expected result is that the second AHC call should not use the Proxy server but should just go to the destination server.

Workaround is to disable connection pooling with .setAllowPoolingConnection(false) which explains this behavior.

Tried with 1.7.x versions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions