Commit 80ebc60
committed
Invalid magic number on remote reply leaves connection open
In recv_msg_tcp, encountering a bad magic number only logs an error and
returns, leaving the socket open even though the comment notes it should
be closed and restarted.
When recv_msg_tcp encounters an invalid magic number it now shuts down
the existing connection with stop_transport(), attempts to re-establish
it immediately, and returns a failure if reconnection fails.1 parent fd40e02 commit 80ebc60
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | | - | |
1458 | | - | |
| 1457 | + | |
1459 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
1460 | 1461 | | |
| 1462 | + | |
1461 | 1463 | | |
1462 | 1464 | | |
1463 | 1465 | | |
| |||
0 commit comments