Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing WSA* error codes #56162

Closed
pitrou opened this issue Apr 28, 2011 · 4 comments
Closed

Missing WSA* error codes #56162

pitrou opened this issue Apr 28, 2011 · 4 comments
Assignees
Labels
3.8 (EOL) end of life 3.9 only security fixes type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented Apr 28, 2011

BPO 11953
Nosy @loewis, @amauryfa, @pitrou, @tjguk, @briancurtin, @zooba
PRs
  • bpo-11953: Completing windows WSA* error codes #15004
  • [3.8] bpo-11953: Extend table of Windows WSA* error codes (GH-15004) #15741
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/zooba'
    closed_at = <Date 2019-09-09.10:36:23.572>
    created_at = <Date 2011-04-28.22:38:42.403>
    labels = ['type-feature', '3.8', '3.9']
    title = 'Missing WSA* error codes'
    updated_at = <Date 2019-09-09.10:36:23.570>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2019-09-09.10:36:23.570>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2019-09-09.10:36:23.572>
    closer = 'steve.dower'
    components = []
    creation = <Date 2011-04-28.22:38:42.403>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 11953
    keywords = ['patch']
    message_count = 4.0
    messages = ['134725', '134727', '351372', '351414']
    nosy_count = 6.0
    nosy_names = ['loewis', 'amaury.forgeotdarc', 'pitrou', 'tim.golden', 'brian.curtin', 'steve.dower']
    pr_nums = ['15004', '15741']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue11953'
    versions = ['Python 3.8', 'Python 3.9']

    @pitrou
    Copy link
    Member Author

    pitrou commented Apr 28, 2011

    Apparently not all Windows socket error codes (see http://msdn.microsoft.com/en-us/library/ms740668%28v=vs.85%29.aspx) are mapped in the errno module.

    For example, a buildbot recently got a 11004 error (see http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/3001/steps/test/logs/stdio), which is:

    “WSANO_DATA
    11004

    Valid name, no data record of requested type.

    The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record—indicating the host itself exists, but is not directly reachable.”
    

    Not sure how this should be handled.

    @pitrou pitrou added the type-feature A feature request or enhancement label Apr 28, 2011
    @pitrou
    Copy link
    Member Author

    pitrou commented Apr 28, 2011

    Actually, it was raised by getaddrinfo(), so should perhaps belong in the socket module instead.

    @zooba
    Copy link
    Member

    zooba commented Sep 9, 2019

    New changeset 71ea688 by Steve Dower (Ngalim Siregar) in branch 'master':
    bpo-11953: Extend table of Windows WSA* error codes (GH-15004)
    71ea688

    @zooba
    Copy link
    Member

    zooba commented Sep 9, 2019

    New changeset eb02196 by Steve Dower in branch '3.8':
    bpo-11953: Extend table of Windows WSA* error codes (GH-15004)
    eb02196

    @zooba zooba added 3.8 (EOL) end of life 3.9 only security fixes labels Sep 9, 2019
    @zooba zooba closed this as completed Sep 9, 2019
    @zooba zooba self-assigned this Sep 9, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life 3.9 only security fixes type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants