[Python-checkins] CVS: python/dist/src/Lib CGIHTTPServer.py,1.12,1.13

Guido van Rossum python-dev@python.org
Thu, 31 Aug 2000 20:27:36 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18350

Modified Files:
	CGIHTTPServer.py 
Log Message:
Now that StreamRequestHandler defaults rfile to buffered, make it
unbuffered (by setting the class variable rbufsize to 0), because we
(may) need to pass the file descriptor to the subprocess running the
CGI script positioned after the headers.


Index: CGIHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/CGIHTTPServer.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** CGIHTTPServer.py	1999/10/18 13:43:44	1.12
--- CGIHTTPServer.py	2000/09/01 03:27:34	1.13
***************
*** 36,39 ****
--- 36,43 ----
      """
  
+     # Make rfile unbuffered -- we need to read one line and then pass
+     # the rest to a subprocess, so we can't use buffered input.
+     rbufsize = 0
+ 
      def do_POST(self):
          """Serve a POST request.