Skip to content

Fix connection reuse with IDN host names#592

Closed
mkauf wants to merge 1 commit intocurl:masterfrom
mkauf:idn-connection-reuse
Closed

Fix connection reuse with IDN host names#592
mkauf wants to merge 1 commit intocurl:masterfrom
mkauf:idn-connection-reuse

Conversation

@mkauf
Copy link
Contributor

@mkauf mkauf commented Jan 7, 2016

Always use the ACE form of IDN hostnames as key in the connection cache.

Previously, curl created multiple connections when following redirections from a server with an IDN hostname, e.g. http://äöü.example.com/page1 --> http://äöü.example.com/page2 . The Unicode hostname was used as a key for the connection cache, and for the second request, the ACE name was used to search an existing connection. Therefore curl did not find the existing connection.

Use the ACE form of IDN hostnames as key in the connection cache.
Add new tests.
@bagder bagder self-assigned this Jan 7, 2016
@bagder bagder closed this in d9b4d1c Jan 7, 2016
@bagder
Copy link
Member

bagder commented Jan 7, 2016

Thanks a lot. The level of detail and the included new test cases in this patch makes this one of the absolutely best newcomer patches we've received in a long time. A very big 👍 for that!

@mkauf
Copy link
Contributor Author

mkauf commented Jan 8, 2016

Thank you for merging and for the kind words :-)

@mkauf mkauf deleted the idn-connection-reuse branch January 8, 2016 08:25
@mkauf mkauf restored the idn-connection-reuse branch January 8, 2016 13:33
@mkauf mkauf deleted the idn-connection-reuse branch January 8, 2016 13:37
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants