Commit 87e9253
Restore socket timeout after partial-read recovery in _recv_exact_py
When a TimeoutError occurs mid-message, the function removes the socket
timeout to avoid protocol desync. Previously the timeout was never
restored, causing the caller's shutdown-polling loop to block
indefinitely on subsequent reads. Now the original timeout is saved
and restored on both EOF and successful completion.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4c7fb60 commit 87e9253
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| 409 | + | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
| 413 | + | |
| 414 | + | |
410 | 415 | | |
411 | 416 | | |
412 | 417 | | |
| |||
0 commit comments