changeset 370:64e283966e97

Fixed FastCGI for envs where you need socket.SO_REUSEADDR imported from: moin--main--1.5--patch-374
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Mon, 09 Jan 2006 13:18:56 +0000
parents 2d00c3892d77
children a6e61f5e1a69
files ChangeLog MoinMoin/support/thfcgi.py
diffstat 2 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 09 13:17:25 2006 +0000
+++ b/ChangeLog	Mon Jan 09 13:18:56 2006 +0000
@@ -2,6 +2,18 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-01-09 14:18:56 GMT	Alexander Schremmer <alex@alexanderweb.de.tla>	patch-374
+
+    Summary:
+      Fixed FastCGI for envs where you need socket.SO_REUSEADDR
+    Revision:
+      moin--main--1.5--patch-374
+
+
+    modified files:
+     ChangeLog MoinMoin/support/thfcgi.py
+
+
 2006-01-09 14:17:25 GMT	Alexander Schremmer <alex@alexanderweb.de.tla>	patch-373
 
     Summary:
--- a/MoinMoin/support/thfcgi.py	Mon Jan 09 13:17:25 2006 +0000
+++ b/MoinMoin/support/thfcgi.py	Mon Jan 09 13:18:56 2006 +0000
@@ -530,7 +530,7 @@
         try:
             if self.__port:
                 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-                #s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 0)
+                s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
                 # bind to the localhost
                 s.bind(('127.0.0.1', self.__port))
                 s.listen(1)
@@ -592,4 +592,4 @@
         while 1:
             (conn, addr) = self.sock.accept()
             self.accept_handler(conn, addr)
-   
\ No newline at end of file
+