|
|
@ -216,6 +216,11 @@ class EventLoop(object): |
|
|
|
handler.handle_event(sock, fd, event) |
|
|
|
except (OSError, IOError) as e: |
|
|
|
shell.print_exception(e) |
|
|
|
try: |
|
|
|
addr = sock.getpeername()[:2] |
|
|
|
logging.error('exception peer name %s:%d' % (addr[0], addr[1])) |
|
|
|
except: |
|
|
|
pass |
|
|
|
now = time.time() |
|
|
|
if asap or now - self._last_time >= TIMEOUT_PRECISION: |
|
|
|
for callback in self._periodic_callbacks: |
|
|
|