This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hexf
Recipients christian.heimes, hexf
Date 2021-10-10.13:41:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633873308.53.0.464980119434.issue45423@roundup.psfhosted.org>
In-reply-to
Content
Not entirely sure if this is intended.

When using urllib.request.urlopen, with a hostname and a varying port the SNI information sent differs.
To my undersnding, the SNI info shouldn't include the port and should only include the actual host.

Attached is an example script demonstrating the issue, where the only difference between the URLs is adding a port number.
The server it points to is configured to only match "ci.hexf.me".
History
Date User Action Args
2021-10-10 13:41:48hexfsetrecipients: + hexf, christian.heimes
2021-10-10 13:41:48hexfsetmessageid: <1633873308.53.0.464980119434.issue45423@roundup.psfhosted.org>
2021-10-10 13:41:48hexflinkissue45423 messages
2021-10-10 13:41:48hexfcreate