Commit e9dd3ee
Add test for client disconnect cleanup behavior
Verifies that when a client disconnects during streaming:
- IOError is properly propagated
- Stream cleanup (close) still executes via ensure block
- No chunks are written after the disconnect
This test confirms that the error propagation + ensure block pattern
(from commits 25c0ae2 and f9d493b) correctly handles cleanup without
explicit rescue blocks for IOError/ClientDisconnected.
Co-authored-by: Ihab Adham <ihabadham@users.noreply.github.com>1 parent 38377bc commit e9dd3ee
1 file changed
+56
-0
lines changedLines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
488 | 544 | | |
489 | 545 | | |
0 commit comments