diff options
author | Joe Orton <jorton@apache.org> | 2020-04-23 10:26:26 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2020-04-23 10:26:26 +0200 |
commit | a42f3692b1b975ba05a8e678bafe463707e7e5df (patch) | |
tree | a8a5e9dbdd39f78248454ba5de524a230f3a3436 /CHANGES | |
parent | config: allow for environment variable substitution fallback to default value. (diff) | |
download | apache2-a42f3692b1b975ba05a8e678bafe463707e7e5df.tar.xz apache2-a42f3692b1b975ba05a8e678bafe463707e7e5df.zip |
Add optional options= argument to Listen to add listener-specific
socket options.
Reimplement "use_specific_errors" listener flag under generic
ap_listen_rec flags field holding all listener-specific options.
* include/ap_listen.h: Add AP_LISTEN_* flags.
(ap_listen_rec): Rename use_specific_errors to flags.
* server/listen.c (make_sock): Set APR_SO_FREEBIND if
AP_LISTEN_FREEBIND flag is set on listener; set APR_SO_REUSEPORT
unconditionally if AP_LISTEN_REUSEPORT is set.
(alloc_listener): Take flags argument.
(ap_setup_listeners): Set AP_LISTEN_SPECIFIC_ERRORS flag here.
(ap_set_listener): Parse optional options=... argument, catch
typos and fail if protocol name contains a "=".
(ap_duplicate_listeners): Duplicate flags.
Submitted by: jkaluza, Lubos Uhliarik <luhliari redhat.com>, jorton
PR: 61865
Github: closes #114
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.1 + *) core: Add optional "options=" argument to Listen. Supported + keywords are "freebind" and "reuseport". PR 61865. + [Jan Kaluza, Lubos Uhliarik <luhliari redhat.com>, Joe Orton] + *) config: Allow for environment variable substitution with default value, for when the variable is not defined, using format ${VAR?=default value}. [Yann Ylavic] |