Message323238
I use the following patch to fix the behavior in Windows.
```
import sys
if sys.platform != 'win32':
def patch():
pass
else:
def patch():
"""Patch selectors.SelectSelector to fix WinError 10038 in Windows
Ref: https://bugs.python.org/issue33350
"""
import select
from selectors import SelectSelector
def _select(self, r, w, _, timeout=None):
try:
r, w, x = select.select(r, w, w, timeout)
except OSError as e:
if hasattr(e, 'winerror') and e.winerror == 10038:
# descriptors may already be closed
return [], [], []
raise
else:
return r, w + x, []
SelectSelector._select = _select
``` |
|
Date |
User |
Action |
Args |
2018-08-07 09:24:40 | Alisue Lambda | set | recipients:
+ Alisue Lambda, asvetlov, yselivanov |
2018-08-07 09:24:40 | Alisue Lambda | set | messageid: <1533633880.33.0.56676864532.issue33350@psf.upfronthosting.co.za> |
2018-08-07 09:24:40 | Alisue Lambda | link | issue33350 messages |
2018-08-07 09:24:40 | Alisue Lambda | create | |
|