Created attachment 216424 [details]
fix usage SO_REUSEPORT_LB
Thanks for the patch.
Any additional information would be much appreciated. Starting with why this is an issue and why it needs to be fixed. Until then it is negative.
(In reply to m.tsatsenko from comment #1)
FreeBSD have both
> SO_REUSEPORT enables duplicate address and port bindings
> SO_REUSEPORT_LB enables duplicate address and port bindings with load balancing
and original code in this situation was compiled with wrong option
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/172759899
Taking, pending maintainer feedback. Would be good to send this change upstream if you haven't already.
(In reply to Steve Wills from comment #4)
I did some digging.
The change seems legit. So as long as it passes QA I am fine with it
A commit references this bug:
Date: Sat Aug 15 19:23:18 UTC 2020
New revision: 545059
databases/pgbouncer: fix usage SO_REUSEPORT_LB
Submitted by: Dmitry Wagin <email@example.com>
Approved by: firstname.lastname@example.org (maintainer)