[issue20418] socket.getaddrinfo fails for hostname that is all digits 0-9
Ariel Glenn
report at bugs.python.org
Tue Jan 28 19:32:13 CET 2014
Ariel Glenn added the comment:
Yes, I had checked that just in case; getaddrinfo(3) works for the all-digit hostname, returning no error. I'm using these hints:
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
hints.ai_protocol = 0;
hints.ai_canonname = NULL;
hints.ai_addr = NULL;
hints.ai_next = NULL;
Tested on glibc-2.18.
----------
nosy: +ariel
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20418>
_______________________________________
More information about the Python-bugs-list
mailing list