CVS commit: [netbsd-11] src

"Martin Husemann" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	martin
Date:		Mon May 18 16:58:49 UTC 2026

Modified Files:
	src/distrib/sets/lists/tests [netbsd-11]: mi
	src/tests/usr.sbin/inetd [netbsd-11]: Makefile
	src/usr.sbin/inetd [netbsd-11]: inetd.8 inetd.c inetd.h parse.c
	    parse_v2.c
Added Files:
	src/tests/usr.sbin/inetd [netbsd-11]: t_accept_max.sh

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #290):

	usr.sbin/inetd/inetd.h: revision 1.7
	usr.sbin/inetd/inetd.h: revision 1.8
	usr.sbin/inetd/inetd.c: revision 1.142
	tests/usr.sbin/inetd/Makefile: revision 1.3
	usr.sbin/inetd/parse_v2.c: revision 1.8
	usr.sbin/inetd/inetd.8: revision 1.69
	tests/usr.sbin/inetd/t_accept_max.sh: revision 1.1
	tests/usr.sbin/inetd/t_accept_max.sh: revision 1.2
	distrib/sets/lists/tests/mi: revision 1.1418
	usr.sbin/inetd/parse.c: revision 1.6

	(all via patch)

Fix various typos in comments.

Add an optional accept limit to stream/nowait services.
Old syntax:
           socket-type[,accept-max][:accept-filter]
New syntax adds the option:
     accept_max    Equivalent to accept-max in positional notation.
accept_max is a positive integer. inetd will stop accepting new
connections for a service, when the number of running and
waited for instances reaches that number. Further connection
attempts will be queued by the kernel and eventually time
out.

The limit acts in parallel to the wait maximum (default 40). If
you want more than 40 instances being spawned, you also need to
adjust the wait maximum to a higher value.

inetd(8): Add a test case for accept-max.
PR bin/59645: inetd `rate-limiting' algorithm is stupid

inetd(8): Fix some tyupos in previous.
PR bin/59645: inetd `rate-limiting' algorithm is stupid


To generate a diff of this commit:
cvs rdiff -u -r1.1387.2.6 -r1.1387.2.7 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.2 -r1.2.6.1 src/tests/usr.sbin/inetd/Makefile
cvs rdiff -u -r0 -r1.2.2.2 src/tests/usr.sbin/inetd/t_accept_max.sh
cvs rdiff -u -r1.68 -r1.68.4.1 src/usr.sbin/inetd/inetd.8
cvs rdiff -u -r1.141 -r1.141.6.1 src/usr.sbin/inetd/inetd.c
cvs rdiff -u -r1.6 -r1.6.6.1 src/usr.sbin/inetd/inetd.h
cvs rdiff -u -r1.5 -r1.5.6.1 src/usr.sbin/inetd/parse.c
cvs rdiff -u -r1.7 -r1.7.4.1 src/usr.sbin/inetd/parse_v2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.