Commit a543a5e
RPC probe: fix spawn race and silence empty-body spam (win.28)
Two bugs surfaced by win.26's RPC liveness probe:
- Race in ConsoleDashboard::render: _lastRpcProbe was only written at
the end of probeRpcServer(), so every render in the window between
spawn and completion (~1ms, but rendered every 500ms) spawned a new
probe thread. Result: tens of TCP connects per second to the RPC
port. Now set _lastRpcProbe before spawning, under the same mutex.
- Dead early-return in Server::handleConnection: checked e.getMessage()
== "empty", but DigiByteException's ctor wraps non-JSON messages in
"Error during parsing of >>...<<", so the check never matched and
every probe connection printed a DEBUG line. Now matches the wrapped
form as well.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 402aa16 commit a543a5e
3 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
372 | 374 | | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| |||
0 commit comments