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 dazhaoyu
Recipients dazhaoyu
Date 2014-01-10.02:03:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389319382.42.0.481013787618.issue20215@psf.upfronthosting.co.za>
In-reply-to
Content
I see, in python 2.7, in SocketServer.py the TCPServer implementation is hard-coded to use ipv4, can not handle IPv6 case. it hard-coded set address_family as socket.AF_INET. so when binding IPv6 host, it will throw "gaierror: [Errno -9] Address family for hostname not supported".

The code should to judge the provided host is IPv4 or IPv6, and base on the host type to set address_family as socket.AF_INET or  socket.AF_INET6
History
Date User Action Args
2014-01-10 02:03:02dazhaoyusetrecipients: + dazhaoyu
2014-01-10 02:03:02dazhaoyusetmessageid: <1389319382.42.0.481013787618.issue20215@psf.upfronthosting.co.za>
2014-01-10 02:03:02dazhaoyulinkissue20215 messages
2014-01-10 02:03:01dazhaoyucreate