changeset 1173:a705e3aa3cca

thfgci: bugfix, didnt answer requests with max_requests==-1
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 13 Aug 2006 19:19:21 +0200
parents 8f8f594e7647
children b634a80564dd
files MoinMoin/support/thfcgi.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/support/thfcgi.py	Sun Aug 13 19:19:13 2006 +0200
+++ b/MoinMoin/support/thfcgi.py	Sun Aug 13 19:19:21 2006 +0200
@@ -585,6 +585,7 @@
                 running = False
             elif self.requests_left > 0:
                 self.requests_left -= 1
+            if running:
                 conn, addr = self.sock.accept()
                 threadcount = _threading.activeCount()
                 if threadcount < self.max_threads: