Commit 85b11ff
committed
Fix stuck autoreconnect case
When we call ping() at a not connected socket the following call trace
is proceeded: ping() -> _send_request() -> _opt_reconnect() -> {here
self.socket is None} -> connect() -> {inconnect is set to True} ->
connect_basic() -> connect_tcp() -> raise NetworkError -> fall though
try-except in connect() -> use null self._socket when try to send a
packet.
A test case ('test_01_simple') will be added within the following
commit.1 parent f4aa278 commit 85b11ff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments