[pypy-issue] Issue #2977: errno.EWOULDBLOCK must be errno.WSAEWOULDBLOCK on windows (pypy/pypy)

mattip issues-reply at bitbucket.org
Sat Mar 23 15:10:24 EDT 2019


New issue 2977: errno.EWOULDBLOCK must be errno.WSAEWOULDBLOCK on windows
https://bitbucket.org/pypy/pypy/issues/2977/errnoewouldblock-must-be

mattip:

msvc 2010 added EWOULDBLOCK, previously it was set to WSAEWOULDBLOCK. We do not override the E* values with the WSAE* values as [cpython does](https://github.com/python/cpython/blob/3.7/Modules/errnomodule.c#L10). This causes [pika](https://github.com/pika/pika/blob/stable/pika/adapters/base_connection.py#L33) to fail. CPython raises a `"BlockingIOError(10035, ...) when the sendbuffer is full. PyPy3 raises BlockingIOError(140, ...) since errno.EWOULDBLOCK is 140 but cpython uses errno.WSAEWOULDBLOCK == 10035




More information about the pypy-issue mailing list