except QueueEmpty:
yield None
continue
- if msg == 'FAKE_IRC_CONN_TIMEOUT_EXCEPTION':
+ if msg == ERR_STR_TIMEOUT:
yield self._on_handled_loop_exception(
- IrcConnException(ERR_STR_TIMEOUT, abort=False))
+ IrcConnException(msg, abort=False))
continue
if msg == 'FAKE_IRC_CONN_ABORT_EXCEPTION':
raise IrcConnException(msg, retry=True)
| conn-full-out
# test retry chain also started by in-connection timeout
-<0 FAKE_IRC_CONN_TIMEOUT_EXCEPTION
+<0 timeout
1 ..> PING :what's up?
-<0 FAKE_IRC_CONN_TIMEOUT_EXCEPTION
+<0 timeout
1 ..$ connection_state set to: [broken: no timely PONG from server]
repeat isupport-clear-in isupport-clear-out
1 ..$ connection_state set to: []
# ping on timeout, go on as normal if PONG received
| full-timeout-in
| trigger-ping-in
-<0 FAKE_IRC_CONN_TIMEOUT_EXCEPTION
+<0 timeout
1 ..> PING :what's up?
| trigger-ping-out
:0:1 ..< :*.?.net PONG *.?.net :what's up?
# another timeout instead of pong? disconnect
repeat trigger-ping-in trigger-ping-out
-<0 FAKE_IRC_CONN_TIMEOUT_EXCEPTION
+<0 timeout
1 ..$ connection_state set to: [broken: no timely PONG from server]
repeat isupport-clear-in isupport-clear-out
1 ..$ connection_state set to: []