Opened 10 years ago

#5433 enhancement new

in _win32ifaces.py, get the Windows error code when WSAIoctl and WSAAddressToString fail

Reported by: Jean-Paul Calderone Owned by:
Priority: normal Milestone:
Component: core Keywords: tests
Cc: Branch:
Author:

Description

win32GetLinkLocalIPv6Addresses makes two different calls using ctypes. When they fail, it doesn't check the error code to see what's going on or to make error reporting more informative. It would be better if it did. It's not totally obvious how to do this, since ctypes doesn't directly support retrieving the error information on all the versions of Python that Twisted supports (as of the filing of this ticket).

Change History (0)

Note: See TracTickets for help on using tickets.