Commit c29fdbc
authored
connection_status: fix deadlock when poisoning connection (#446)
When poisoning the connection status during an early network failure, we would end up dropping the connection held by the connection resolver while the ConnectionStatus is still locked.
Make sure we always release the lock before dropping the connection so that the ConnectionCloser doesn't lock us when accessing the ConnectionStatus.
Fixes #4471 parent 81f07ae commit c29fdbc
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
262 | 266 | | |
263 | 267 | | |
264 | 268 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 269 | + | |
269 | 270 | | |
| 271 | + | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
0 commit comments