[New-bugs-announce] [issue30710] getaddrinfo raises OverflowError
Radek Smejkal
report at bugs.python.org
Tue Jun 20 09:19:55 EDT 2017
New submission from Radek Smejkal:
If the port argument is a number, getaddrinfo attempts to convert it to a C long, that raises OverflowError if the conversion fails.
Instead, getaddrinfo should convert the port to a string (bytes) directly and rely on the underlying getaddrinfo to return EAI_SERVICE. This is also consistent with the case when a numeric port is passed as a string.
----------
components: Library (Lib)
messages: 296421
nosy: smejkar
priority: normal
severity: normal
status: open
title: getaddrinfo raises OverflowError
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30710>
_______________________________________
More information about the New-bugs-announce
mailing list