Commit a8c3d5e
authored
Fix: Do not fast_fallback if local_port is explicitly specified (ruby#15732)
`fast fallback` cannot be used with explicitly specified local port,
because concurrent binds to the same `local_host:local_port`
can raise `Errno::EADDRINUSE`.
This issue is more likely to occur on hosts with `IPV6_V6ONLY` disabled,
because IPv6 binds can also occupy IPv4-mapped IPv6 address space.1 parent 3c9e61f commit a8c3d5e
2 files changed
+23
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
261 | 277 | | |
262 | 278 | | |
263 | 279 | | |
| |||
1314 | 1330 | | |
1315 | 1331 | | |
1316 | 1332 | | |
1317 | | - | |
1318 | | - | |
| 1333 | + | |
| 1334 | + | |
1319 | 1335 | | |
| 1336 | + | |
1320 | 1337 | | |
1321 | 1338 | | |
| 1339 | + | |
1322 | 1340 | | |
1323 | | - | |
| 1341 | + | |
1324 | 1342 | | |
1325 | 1343 | | |
1326 | 1344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | 663 | | |
665 | 664 | | |
666 | 665 | | |
667 | 666 | | |
668 | | - | |
| 667 | + | |
669 | 668 | | |
670 | 669 | | |
671 | 670 | | |
| |||
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
739 | | - | |
| 738 | + | |
740 | 739 | | |
741 | 740 | | |
742 | 741 | | |
| |||
0 commit comments