[issue30205] socket.getsockname() type mismatch with AF_UNIX on Linux
STINNER Victor
report at bugs.python.org
Tue May 2 17:32:09 EDT 2017
STINNER Victor added the comment:
> I didn't know getsockname() could return None...
Me neither. Maybe it's a bug? makesockaddr() returns None if addrlen equals 0:
if (addrlen == 0) {
/* No address -- may be recvfrom() from known socket */
Py_RETURN_NONE;
}
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30205>
_______________________________________
More information about the Python-bugs-list
mailing list