Commit 7f1d33f
committed
shutdown bugfix: Prevent segfault in server if connection is broken during long function call
Fix issue where if a client disconnects in the middle of a long running IPC
method call, the server will segfault when the method eventually returns.
This behavior was reported by tdb3 in
bitcoin/bitcoin#31003 (review)
including a stack trace showing where the crash happens in the PassField
mp.Context overload while calling request_threads.erase.1 parent 181837b commit 7f1d33f
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| |||
0 commit comments