]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Remove SO_REUSEPORT from the RTR socket bind
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 28 Sep 2023 22:32:53 +0000 (16:32 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 28 Sep 2023 22:34:37 +0000 (16:34 -0600)
commit2b2f7c3cea147796ed92cc25aade90701221c210
tree538ace5c721c2a3d99a454c1e022714e6ac6a5d5
parent8c391215f88c61fb3c6ece2ae27cdb1fbc08c4a3
Remove SO_REUSEPORT from the RTR socket bind

This option is causing portability issues, and I can't figure out why it
was introduced. None of the Github issues mention it, and
6401a4739ac512985158e63499e037dc2f2078db says

> Use SO_REUSEPORT at sockopts so that the RTR port can be reused

But reused when? For what purpose?

I think this might be an allusion to
ac56d70c954caf49382f5f28ff4a017e859e2e0a:

> SO_REUSEADDR sockopt allows to reuse server address and port at once
> when the service has been stoped (or killed).

But that doesn't need SO_REUSEPORT for anything.
src/rtr/rtr.c