Subject: CVS commit: pkgsrc/www/py-scgi
From: Adam Ciarcinski
Date: 2025-02-06 14:49:19
Message id: 20250206134919.7076CFBE0@cvs.NetBSD.org

Log Message:
py-scgi: updated to 2.2

2.2.

Add the SCGI protocol document.

Make scgi_server reap_children() more robust.

It is possible that a child has already been removed from the list of
children so handle that case gracefully.  Change the session_server
reap_children() to check if self.children is non-empty, for small
efficiency gain and to match the scgi_server version.

v2.1

Use setuptools.

Modernize setup.py, add dist.sh script.

v2.0

Modernize setup.py, add dist.sh script.

Limit retries in delegate_request().

If we continuously fail to pass a request to a child, give up after a
certain number of attempts (30).  Otherwise, delegate_request() will
never return.  If this happens, something is seriously wrong with the
SCGI application but it seems slightly better to start dropping incoming
requests in that case rather than never making progress.

Improve exception handling in Child.process().

Since Python 3.5, EINTR is no longer returned to user code.  So, remove
handling of it.  In Python 3, socket.error is OSError.  So, use OSError
directly rather than socket.error.

If an exception occurs inside Child.process(), close the connection to
the child.  That will cause the child to exit and be reaped.  The
previous behavior of raising an exception from process() could cause the
master SCGI process to exit in some cases.  We want to avoid that.

Files:
RevisionActionfile
1.21modifypkgsrc/www/py-scgi/Makefile
1.8modifypkgsrc/www/py-scgi/PLIST
1.7modifypkgsrc/www/py-scgi/distinfo