Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connections get mixed up when using proxy and connection pooling #545

Closed
krystofbe opened this issue Dec 5, 2018 · 4 comments
Closed

connections get mixed up when using proxy and connection pooling #545

krystofbe opened this issue Dec 5, 2018 · 4 comments

Comments

@krystofbe
Copy link

Hello :)

I'm experiencing a strange issue with hackney in combination with a transparent http/https proxy and connection pooling.
I'm using ex_aws for different aws services. ex_aws uses hackney internally. i'm forced to connect through a transparent proxy with hackney. with proxy settings in hackney, i'm noticing that connections get mixed up.

i'm seeing requests for https://s3.eu-central-1.amazonaws.com being delivered to https://sqs.eu-central-1.amazonaws.com and vice versa when i'm sending a lot of requests in a short time. I'm pretty sure this is not an issue with ex_aws because this behavior disappears when i disable the proxy in hackney_options or disable connection pooling in hackney.

Can someone confirm this or do you need more background?

@krystofbe
Copy link
Author

bildschirmfoto 2018-12-05 um 11 05 50

Here is an example with a proxy and connection pooling enabled, the third request is triggered to https://sqs.eu-central-1.amazonaws.com although it's meant for https://s3.eu-central-1.amazonaws.com

@benoitc
Copy link
Owner

benoitc commented Dec 5, 2018

can you provide a snippet of the code/conf you’re using? it doesn’t have to be the real host. Which tool are you usjng for the transparent proxy? any specific conf?

@thang911pk
Copy link

This is still an issue. Have you had a chance to take a look at it? We are using the latest version of hackney with HTTPoison.

@benoitc
Copy link
Owner

benoitc commented Dec 4, 2019

discussions continue in #566 . Thanks for the report. A fix will land this week.

@benoitc benoitc closed this as completed Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants