提交 3afa0160 编写于 作者: A Andy McCurdy

version 3.3.4, more specifically identify nonblocking read errors

versions 3.3.1, 3.3.2 and 3.3.3 could potentially hide ConnectionErrors
on Python 2.7. This change accurately identifies errors by both
exception class and errno to determine whether a nonblocking socket can
be read
上级 885ce770
......@@ -2,6 +2,7 @@ from __future__ import unicode_literals
from distutils.version import StrictVersion
from itertools import chain
from time import time
import errno
import io
import os
import socket
......@@ -35,7 +36,7 @@ except ImportError:
ssl_available = False
NONBLOCKING_EXCEPTION_ERROR_NUMBERS = {
BlockingIOError: 35,
BlockingIOError: errno.EWOULDBLOCK,
}
if ssl_available:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册