Commit 7402cab
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 b3a6035 commit 7402cab
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
| 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