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 <1464186813.34.0.835711175064.issue26936@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-25 14:33:33xdegayesetrecipients: + xdegaye, Alex.Willmer
2016-05-25 14:33:33xdegayesetmessageid: <1464186813.34.0.835711175064.issue26936@psf.upfronthosting.co.za>
2016-05-25 14:33:33xdegayelinkissue26936 messages
2016-05-25 14:33:33xdegayecreate