Commit 06d9906
committed
fix(DISET): reject all connections during throttling to prevent queue growth
The previous throttle mechanism accepted one connection every 0.25s
even while the service was overloaded. When threads were stuck (e.g.
blocked on DB queries or deadlocked), each accepted connection added
to the already-full queue, making recovery impossible.
Now all incoming connections are rejected while wantsThrottle is True,
with a brief sleep to avoid busy-spinning. This prevents the
self-reinforcing stuck state where the queue grows faster than it
can drain.1 parent c4ce62e commit 06d9906
1 file changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| |||
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
| |||
0 commit comments