Show More
@@ -16,8 +16,13 b' import socket' | |||
|
16 | 16 | import struct |
|
17 | 17 | import traceback |
|
18 | 18 | |
|
19 | try: | |
|
20 | import selectors | |
|
21 | selectors.BaseSelector | |
|
22 | except ImportError: | |
|
23 | from .thirdparty import selectors2 as selectors | |
|
24 | ||
|
19 | 25 | from .i18n import _ |
|
20 | from .thirdparty import selectors2 | |
|
21 | 26 | from . import ( |
|
22 | 27 | encoding, |
|
23 | 28 | error, |
@@ -476,8 +481,8 b' class unixforkingservice(object):' | |||
|
476 | 481 | def _mainloop(self): |
|
477 | 482 | exiting = False |
|
478 | 483 | h = self._servicehandler |
|
479 |
selector = selectors |
|
|
480 |
selector.register(self._sock, selectors |
|
|
484 | selector = selectors.DefaultSelector() | |
|
485 | selector.register(self._sock, selectors.EVENT_READ) | |
|
481 | 486 | while True: |
|
482 | 487 | if not exiting and h.shouldexit(): |
|
483 | 488 | # clients can no longer connect() to the domain socket, so |
General Comments 0
You need to be logged in to leave comments.
Login now