diff --git a/apache2.changes b/apache2.changes index e9c99da..ca33e40 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Jan 31 18:22:09 UTC 2020 - Cristian Rodríguez + +- define DEFAULT_LISTENBACKLOG=APR_INT32_MAX. We want apache + to honour net.core.somaxconn sysctl as the mandatory limit. + the old value of 511 was never used as until v5.4-rc6 it was + clamped to 128, in current kernels the default limit is 4096. + Cannot use the apr_socket_listen(.., -1) idiom because the function + expects a positive integer argument. + ------------------------------------------------------------------- Mon Jan 20 13:04:23 UTC 2020 - pgajdos@suse.com diff --git a/apache2.spec b/apache2.spec index 988284f..de80369 100644 --- a/apache2.spec +++ b/apache2.spec @@ -451,7 +451,7 @@ for mpm in %{mpms_to_build}; do mv include/ap_config_auto.h.new include/ap_config_auto.h sed -i -e "s@%{_localstatedir}/run@%{runtimedir}@g" include/ap_config_layout.h - make CFLAGS="%{optflags} -fvisibility=hidden -fPIC -Wall -DDEFAULT_ERRORLOG='\"%{logfiledir}/error_log\"'" %{?_smp_mflags} + make CFLAGS="%{optflags} -fvisibility=hidden -fPIC -Wall -DDEFAULT_LISTENBACKLOG=APR_INT32_MAX -DDEFAULT_ERRORLOG='\"%{logfiledir}/error_log\"'" %{?_smp_mflags} make DESTDIR=%{buildroot} install -j1 # show pathnames in config files