FreeBSD Bugzilla – Attachment 216424 Details for
Bug 247956
databases/pgbouncer: fix usage SO_REUSEPORT_LB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
pgbouncer.diff
pgbouncer.diff (text/plain), 1.96 KB, created by
Dmitry Wagin
on 2020-07-14 00:15:57 UTC
(
hide
)
Description:
pgbouncer.diff
Filename:
MIME Type:
Creator:
Dmitry Wagin
Created:
2020-07-14 00:15:57 UTC
Size:
1.96 KB
patch
obsolete
>Index: databases/pgbouncer/Makefile >=================================================================== >--- databases/pgbouncer/Makefile (revision 541977) >+++ databases/pgbouncer/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= pgbouncer > PORTVERSION= 1.14.0 >+PORTREVISION= 1 > CATEGORIES= databases > MASTER_SITES= https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \ > http://pgbouncer.github.io/downloads/files/${PORTVERSION}/ >Index: databases/pgbouncer/files/patch-src_pooler.c >=================================================================== >--- databases/pgbouncer/files/patch-src_pooler.c (nonexistent) >+++ databases/pgbouncer/files/patch-src_pooler.c (working copy) >@@ -0,0 +1,25 @@ >+--- src/pooler.c.orig 2020-05-26 09:38:55 UTC >++++ src/pooler.c >+@@ -127,16 +127,16 @@ static bool add_listen(int af, const struct sockaddr * >+ * unportable, so perhaps better to avoid it.) >+ */ >+ if (af != AF_UNIX && cf_so_reuseport) { >+-#if defined(SO_REUSEPORT) >++#if defined(SO_REUSEPORT_LB) >+ int val = 1; >+- errpos = "setsockopt/SO_REUSEPORT"; >+- res = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)); >++ errpos = "setsockopt/SO_REUSEPORT_LB"; >++ res = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT_LB, &val, sizeof(val)); >+ if (res < 0) >+ goto failed; >+-#elif defined(SO_REUSEPORT_LB) >++#elif defined(SO_REUSEPORT) >+ int val = 1; >+- errpos = "setsockopt/SO_REUSEPORT_LB"; >+- res = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT_LB, &val, sizeof(val)); >++ errpos = "setsockopt/SO_REUSEPORT"; >++ res = setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val)); >+ if (res < 0) >+ goto failed; >+ #else > >Property changes on: databases/pgbouncer/files/patch-src_pooler.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247956
: 216424