Commit 1300292
Paul C
wolfdisk v2.9.1: clear AddrInUse diagnostic on peer-manager bind
klasSponsor hit 'Failed to start peer manager: Address in use (os error
98)' with no indication of which port or why. std's TcpListener already
sets SO_REUSEADDR, so AddrInUse means another process is actively
listening on the peer port — almost always a second wolfdisk instance
(you do NOT need one for S3: set [s3] enabled = true on the existing
wolfdisk), a stale wolfdisk that didn't stop, or a clash with WolfStack's
status-page range 8550-8599. The error now names the address and the
likely cause and tells the operator to find the holder with ss -ltnp.
Also bind BEFORE flipping the running flag true so a failed bind never
leaves the manager flagged running. Diagnostics-only; no behaviour change
on the success path.1 parent 595a094 commit 1300292
3 files changed
Lines changed: 28 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
123 | 145 | | |
| 146 | + | |
124 | 147 | | |
125 | 148 | | |
126 | 149 | | |
| |||
0 commit comments