Hello everyone,
I got the same as mike.
In fact I verified that the socket is always set in non blocking mode.
(OS: FreeBSD 4.7-STABLE 5/2/2003, python 2.2.2, mod_scgi 0.5)
Which is the "correct" fix? What's the explanation?
I fixed it with the following patch:
--- /usr/local/lib/python2.2/site-packages/scgi/scgi_server.py Tue Sep 3
19:12:50 2002
+++ scgi_server.py Thu Feb 6 00:08:09 2003
@@ -56,6 +56,7 @@
raise SystemExit
conn = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
os.close(fd)
+ conn.setblocking(1)
self.handle_connection(conn)
Thanks!
Paolo