changeset 1172:8f8f594e7647

thfcgi: use max_requests as param name, it's more clear
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 13 Aug 2006 19:19:13 +0200
parents 28120c8c1b6b
children a705e3aa3cca
files MoinMoin/support/thfcgi.py wiki/server/moin.fcg
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/support/thfcgi.py	Sun Aug 13 19:19:00 2006 +0200
+++ b/MoinMoin/support/thfcgi.py	Sun Aug 13 19:19:13 2006 +0200
@@ -518,14 +518,14 @@
 class FCGI:
     """FCGI requests"""
 
-    def __init__(self, req_handler, fd=sys.stdin, port=None, requests_left=-1, backlog=5, max_threads=5):
+    def __init__(self, req_handler, fd=sys.stdin, port=None, max_requests=-1, backlog=5, max_threads=5):
         """Initialize main loop and set request_handler."""
         self.req_handler = req_handler
         self.fd = fd
         self.__port = port
         self._make_socket()
         # how many requests we have left before terminating this process, -1 means infinite lifetime:
-        self.requests_left = requests_left
+        self.requests_left = max_requests
         # for socket.listen(backlog):
         self.backlog = backlog
         # how many threads we have at maximum (including the main program = 1. thread)
--- a/wiki/server/moin.fcg	Sun Aug 13 19:19:00 2006 +0200
+++ b/wiki/server/moin.fcg	Sun Aug 13 19:19:13 2006 +0200
@@ -55,6 +55,6 @@
     request.run()
 
 if __name__ == '__main__':
-    fcg = thfcgi.FCGI(handle_request, requests_left=max_requests, backlog=backlog, max_threads=max_threads)
+    fcg = thfcgi.FCGI(handle_request, max_requests=max_requests, backlog=backlog, max_threads=max_threads)
     fcg.run()