Commit c32186c
committed
Do not throw when writing if socket closed
The call to shutdown() in runReadFiber will fail the request if the socket closes. The exception thrown in runWriteFiber was sometimes being caught by the event loop error handler as the top-level exception, not a previous exception as would be expected. I'm not sure how this is possible, but removing the throw fixed the issue.1 parent 09212eb commit c32186c
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
1597 | 1598 | | |
1598 | 1599 | | |
1599 | 1600 | | |
1600 | | - | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1601 | 1604 | | |
1602 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1603 | 1608 | | |
1604 | 1609 | | |
| 1610 | + | |
1605 | 1611 | | |
1606 | 1612 | | |
1607 | 1613 | | |
| |||
1610 | 1616 | | |
1611 | 1617 | | |
1612 | 1618 | | |
1613 | | - | |
| 1619 | + | |
1614 | 1620 | | |
1615 | 1621 | | |
1616 | 1622 | | |
| |||
0 commit comments