Commit e9b9907
committed
fix: volatile channel fields, disposal race, and ParseHostEndpoint fallback
- Add volatile to _publisherChannel/_subscriberChannel for safe
double-checked locking on ARM64 (outer null check needs memory barrier)
- Move _publisherReady.Set() after connection close in CleanupAsync to
prevent unblocked publishers from racing into a disposing channel
- Fix ParseHostEndpoint: invalid port fallback now uses parsed hostname
instead of the full trimmed string (e.g. "host:abc" -> "host", not
"host:abc")1 parent f98fc91 commit e9b9907
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
868 | | - | |
| 869 | + | |
869 | 870 | | |
870 | 871 | | |
871 | 872 | | |
| |||
0 commit comments