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 christian.heimes
Recipients christian.heimes, j1m, r.david.murray, yselivanov
Date 2017-09-07.14:25:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504794318.23.0.0699282260635.issue27391@psf.upfronthosting.co.za>
In-reply-to
Content
Jim, yes I agree. In a matter of fact, the ssl module also agrees with you and behaves like that for a while. I cannot reproduce the problem with either 2.7, 3.5, or 3.6. I have attached an demo script.


check_hostname = True
* server_hostname='www.python.org' OK
* server_hostname='': Exception: check_hostname requires server_hostname
* no server_hostname: Exception: check_hostname requires server_hostname

check_hostname = False
* server_hostname='www.python.org' OK
* server_hostname='' OK
* no server_hostname OK
History
Date User Action Args
2017-09-07 14:25:18christian.heimessetrecipients: + christian.heimes, r.david.murray, j1m, yselivanov
2017-09-07 14:25:18christian.heimessetmessageid: <1504794318.23.0.0699282260635.issue27391@psf.upfronthosting.co.za>
2017-09-07 14:25:18christian.heimeslinkissue27391 messages
2017-09-07 14:25:18christian.heimescreate