287
288
readable, writable_unused, exception_unused = \
288
289
select.select([self._socket], [], [], 0.1)
289
290
if self._stop_event.isSet():
294
296
s, addr_unused = self._socket.accept()
295
299
# because the loopback socket is inline, and transports are
296
300
# never explicitly closed, best to launch a new thread.
297
301
threading.Thread(target=self._callback, args=(s,)).start()