Created attachment 216424 [details] pgbouncer.diff fix usage SO_REUSEPORT_LB
Hello, 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) Already :) https://github.com/pgbouncer/pgbouncer/pull/504
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: Author: swills Date: Sat Aug 15 19:23:18 UTC 2020 New revision: 545059 URL: https://svnweb.freebsd.org/changeset/ports/545059 Log: databases/pgbouncer: fix usage SO_REUSEPORT_LB PR: 247956 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> Approved by: m.tsatsenko@gmail.com (maintainer) Changes: head/databases/pgbouncer/Makefile head/databases/pgbouncer/files/patch-src_pooler.c
Committed, thanks!