Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1680

Show
Ignore:
Timestamp:
06/22/07 09:57:46
Author:
fumanchu
Message:

No sense passing rfile if it's already required to be in wsgi.input.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test.py

    r1678 r1680  
    175175        print """CherryPy Test Program 
    176176    Usage: 
    177         test.py --server=* --host=%s --port=%s --1.0 --cover --basedir=path --profile --validate --conquer --dumb --tests** 
     177        test.py --help --server=* --host=%s --port=%s --1.0 --ssl --cover 
     178            --basedir=path --profile --validate --conquer --dumb --tests** 
    178179         
    179180    """ % (self.__class__.host, self.__class__.port) 
  • trunk/cherrypy/wsgiserver/__init__.py

    r1679 r1680  
    125125    A single HTTP connection may consist of multiple request/response pairs. 
    126126     
    127     rfile: the 'read' fileobject from the connection's socket. 
    128127    sendall: the 'sendall' method from the connection's fileobject. 
    129128    wsgi_app: the WSGI application to call. 
    130129    environ: a partial WSGI environ (server and connection entries). 
    131130        The caller MUST set the following entries: 
    132         * All wsgi.* entries 
     131        * All wsgi.* entries, including .input 
    133132        * SERVER_NAME and SERVER_PORT 
    134133        * Any SSL_* entries 
     
    156155    """ 
    157156     
    158     def __init__(self, rfile, sendall, environ, wsgi_app): 
    159         self.rfile = rfile 
     157    def __init__(self, sendall, environ, wsgi_app): 
     158        self.rfile = environ['wsgi.input'] 
    160159        self.sendall = sendall 
    161160        self.environ = environ.copy() 
     
    623622                # get written to the previous request. 
    624623                req = None 
    625                 req = self.RequestHandlerClass(self.rfile, self.sendall
    626                                                self.environ, self.wsgi_app) 
     624                req = self.RequestHandlerClass(self.sendall, self.environ
     625                                               self.wsgi_app) 
    627626                # This order of operations should guarantee correct pipelining. 
    628627                req.parse_request() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets