-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Duplicate Connection headers added to request when connection pooling is disabled #211
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
Comments
Note, using the |
As 1.7.12 might be the last one of the 1.7 series, it might be good to have a decision here. |
@slandelle Should be close IMO. I think it a mistake right from the beginning. |
Is the expected behaviour that if At the moment providers behave differently: Netty:
JDK:
My view is that |
@jfarcand Go for close when connection pooling is disabled? If so, I'll open a new issue (that's a different one from this header duplication thing) |
With proxying enabled there are definitely two Netty:
JDK:
|
@slandelle +1 |
FYI, the duplicate header issue seems to be a bug in Fiddler 2 such that |
Thanks for the feedback |
When disabling connection pooling (via
AsyncHttpClientConfig#setAllowPoolingConnection()
) requests are invalid:Connection
headers are present in the request;Connection
header should have the valueclose
to indicate connections will not be re-used.The following example reproduces the problem:
The text was updated successfully, but these errors were encountered: