changeset 3459:b4b32e3a04af

server_fastcgi: add port to the Config, use None as default, so behaviour does not change except when explicitly set
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 31 Mar 2008 01:33:54 +0200
parents 4f49f6e762a8
children 2f1100735fa4
files MoinMoin/server/server_fastcgi.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/server_fastcgi.py	Sun Mar 30 23:41:27 2008 +0200
+++ b/MoinMoin/server/server_fastcgi.py	Mon Mar 31 01:33:54 2008 +0200
@@ -46,12 +46,14 @@
     # backlog, use in socket.listen(backlog) call
     backlog = 5
 
+    # default port
+    port = None
 
 def run(ConfigClass=FastCgiConfig):
     config = ConfigClass()
 
     handle_request = lambda req, env, form, properties=config.properties: \
                          request_fcgi.Request(req, env, form, properties=properties).run()
-    fcg = thfcgi.FCGI(handle_request, max_requests=config.max_requests, backlog=config.backlog, max_threads=config.max_threads)
+    fcg = thfcgi.FCGI(handle_request, port=config.port, max_requests=config.max_requests, backlog=config.backlog, max_threads=config.max_threads)
     fcg.run()