Commit ed5721c
committed
fix(session): harden propagate handler with try/except, better error msg
- Guard stream.aclose() in propagate handler with try/except to handle
already-closed streams (mirrors existing connection-close cleanup pattern)
- Include exception class name and message in the INTERNAL_ERROR response
sent to the peer for better debuggability
- Add explanatory comment on why the receive loop exits after propagation1 parent 5c3ad03 commit ed5721c
1 file changed
Lines changed: 13 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
391 | 395 | | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
396 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
397 | 408 | | |
398 | 409 | | |
399 | 410 | | |
| |||
0 commit comments