Commit 7a9211f
committed
factory: raise on closed connections
When connection is closed by the server, but there is no other error, it
will be close (is_cloes == True) without setting `last_error`. This is
true for all reactors apart from Twisted as far as I can tell.
If we try to use such connection, we'll quickly discover that its
broken, but we can slightly optimize this process by raising directly
from factory().1 parent 0ec3fd3 commit 7a9211f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
| 989 | + | |
| 990 | + | |
989 | 991 | | |
990 | 992 | | |
991 | 993 | | |
| |||
0 commit comments