Commit e3b70df
fix(network): reject duplicate HELLO instead of panicking
A peer that completed HELLO and sent a second one re-entered
`update_ingress_node_id` with its own token already in `node_id_index`,
hitting a `panic!` — a remotely-triggerable node panic from the
simultaneous-dial tie-break.
Reject a second HELLO on an already-ready session with `BadProtocol`
(disconnecting it like any protocol violation), and downgrade the
now-unreachable index branch to a soft error. Surfaced via #3510.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7140cfb commit e3b70df
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
304 | 311 | | |
305 | 312 | | |
306 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
| |||
0 commit comments