From: Michael R Sweet Date: Fri, 1 Oct 2021 15:25:11 +0000 (-0400) Subject: Remove non-functional ListenBackLog directive (Apple #5975) X-Git-Tag: v2.4b1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620e9b1b7c3d9f69ec0d0d714308cf56c37fc47a;p=thirdparty%2Fcups.git Remove non-functional ListenBackLog directive (Apple #5975) --- diff --git a/CHANGES.md b/CHANGES.md index e375ed8659..30012b3ea1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -71,8 +71,8 @@ CUPS v2.4-b1 (Pending) - Deprecated cups-config (Issue #97) - Deprecated Kerberos (`AuthType Negotiate`) authentication (Issue #98) - Removed support for the (long deprecated and unused) `FontPath`, - `LPDConfigFile`, `KeepAliveTimeout`, `RIPCache`, and `SMBConfigFile` - directives in `cupsd.conf` and `cups-files.conf`. + `ListenBackLog`, `LPDConfigFile`, `KeepAliveTimeout`, `RIPCache`, and + `SMBConfigFile` directives in `cupsd.conf` and `cups-files.conf`. - Stubbed out deprecated `httpMD5` functions. diff --git a/doc/help/man-cupsd.conf.html b/doc/help/man-cupsd.conf.html index 8f077e8427..73e24c51e5 100644 --- a/doc/help/man-cupsd.conf.html +++ b/doc/help/man-cupsd.conf.html @@ -158,11 +158,6 @@ The default is "0" which disables the limit check. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks. Note: "Listen *:port" and "Port port" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port. -
ListenBackLog number -
Specifies the number of pending connections that will be allowed. -This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections. -When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones. -The default is the OS-defined default limit, typically either "5" for older operating systems or "128" for newer operating systems.
<Location /path> ... </Location>
Specifies access control for the named location. Paths are documented below in the section "LOCATION PATHS". diff --git a/man/cupsd.conf.5 b/man/cupsd.conf.5 index 1d50523b59..ac82415396 100644 --- a/man/cupsd.conf.5 +++ b/man/cupsd.conf.5 @@ -8,7 +8,7 @@ .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" -.TH cupsd.conf 5 "CUPS" "2021-04-27" "OpenPrinting" +.TH cupsd.conf 5 "CUPS" "2021-10-01" "OpenPrinting" .SH NAME cupsd.conf \- server configuration file for cups .SH DESCRIPTION @@ -236,13 +236,6 @@ Listens to the specified address and port or domain socket path for connections. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks. Note: "Listen *:\fIport\fR" and "Port \fIport\fR" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port. -.\"#ListenBackLog -.TP 5 -\fBListenBackLog \fInumber\fR -Specifies the number of pending connections that will be allowed. -This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections. -When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones. -The default is the OS-defined default limit, typically either "5" for older operating systems or "128" for newer operating systems. .\"#Location .TP 5 \fB \fR... \fB\fR diff --git a/scheduler/client.h b/scheduler/client.h index 7092bdfbc1..1c013d4421 100644 --- a/scheduler/client.h +++ b/scheduler/client.h @@ -90,8 +90,6 @@ typedef struct VAR int LastClientNumber VALUE(0), /* Last client connection number */ - ListenBackLog VALUE(SOMAXCONN), - /* Max backlog of pending connections */ LocalPort VALUE(631), /* Local port to use */ RemotePort VALUE(0); diff --git a/scheduler/conf.c b/scheduler/conf.c index 96109ddf4a..5d167e0fe8 100644 --- a/scheduler/conf.c +++ b/scheduler/conf.c @@ -101,7 +101,6 @@ static const cupsd_var_t cupsd_vars[] = { "LaunchdTimeout", &IdleExitTimeout, CUPSD_VARTYPE_TIME }, #endif /* HAVE_LAUNCHD */ { "LimitRequestBody", &MaxRequestSize, CUPSD_VARTYPE_INTEGER }, - { "ListenBackLog", &ListenBackLog, CUPSD_VARTYPE_INTEGER }, { "LogDebugHistory", &LogDebugHistory, CUPSD_VARTYPE_INTEGER }, { "MaxActiveJobs", &MaxActiveJobs, CUPSD_VARTYPE_INTEGER }, { "MaxClients", &MaxClients, CUPSD_VARTYPE_INTEGER }, @@ -714,7 +713,6 @@ cupsdReadConfiguration(void) FilterNice = 0; HostNameLookups = FALSE; KeepAlive = TRUE; - ListenBackLog = SOMAXCONN; LogDebugHistory = 200; LogFilePerm = CUPS_DEFAULT_LOG_FILE_PERM; LogFileGroup = Group;