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 xdegaye
Recipients Alex.Willmer, xdegaye
Date 2016-05-25.14:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Problems with the socket module on Android:
API 21:
    a) Both getservbyname() and getservbyport() fail when the optional 'protocolname' parameter is not set to 'tcp' or 'udp'.
    b) getservbyname() fails when 'servicename' is set to 'http'.
    getaddrinfo() fails either when:
        c) 'port' is 'http'.
        d) Or the optional 'type' is not set to socket.SOCK_STREAM or socket.SOCK_DGRAM and 'port' is a string.

API 23:
    e) getservbyport() fails when the optional 'protocolname' parameter is not set to 'tcp' or 'udp'.

IMHO case b) and c) are difficult to fix.
For case d), one could use the Python implementation of getaddrinfo, but Android does not have the deprecated getipnodebyaddr(), so it is necessary to disable ipv6 in this case. Not sure if this is worth it.
Date User Action Args
2016-05-25 14:33:33xdegayesetrecipients: + xdegaye, Alex.Willmer
2016-05-25 14:33:33xdegayesetmessageid: <>
2016-05-25 14:33:33xdegayelinkissue26936 messages
2016-05-25 14:33:33xdegayecreate