1. cherrypy
  2. CherryPy

Source

CherryPy / cherrypy / _cpwsgi.py

The default branch has multiple heads

Author Commit Message Date Builds
Robert Brewer
Fix for #496 (memory leak in threadlocal objects).
Robert Brewer
Fix for broken test in [990].
Robert Brewer
Speed tweak: you can now set max_header_size and max_request_size to 0 to explicitly skip using SizeWrappers.
Robert Brewer
Implemented #461 (CPWSGIServer should route multiple apps). This allows you to instantiate a WSGIServer with multiple apps; however, _cpserver still needs to be upgraded to "do that for you". I'll do that in a separate commit.
Christian Wyglendowski
1. Removed request.wsgi_environ from _cphttpserver. 2. Added cherrypy.server.wsgi_app attribute to ease wrapping the CP wsgiApp with WSGI middleware. 3. Modified _cpwsgiserver to set SCRIPT_NAME to '' and to instead put the request path in PATH_INFO. Modified _cpwsgi to deal with this change. 4. Added standalone test for mounting the CP wsgiApp at an alternate SCRIPT_NAME. Not sure how best to integrate it into the test suite.
Christian Wyglendowski
Added new cherrypy.request.wsgi_environ attribute that contains a dictionary of the WSGI environment (surprise, surprise). In a non-WSGI setting wsgi_environ has a value of False.
Robert Brewer
New signature for cherrypy.log.
Robert Brewer
Fix for #186 (allow exceptions to escape CP and up into WSGI middleware).
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Fix for the fix for #311 (onEndRequest method). {{{__del__}}} cannot work, since it might be called after the thread has already begun processing another request.
Robert Brewer
Fix for #388 (IPv6 support). While I was up to my elbows in the HTTP servers, I went ahead and: 1. Implemented MaxSize limits in _cphttpserver 2. Made PooledThreadServer a subclass of CherryHTTPServer, which consolidated a lot of features that each had which the other didn't, including AF_UNIX support. 3. Implemented AF_UNIX support for _cpwsgiserver. 4. Pulled the MaxSize logic out of _cpwsgiserver completely; the upshot is that both server interfaces can now use the same wrapper (now i…
Robert Brewer
Fix for #311 (filter method which runs after the response is completely written (or aborted)). New 'onEndRequest' filter method. HTTP SERVERS SHOULD NOW CALL request.close() when they are done writing out.
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer
Fix for #356 (formalize server.environment as a set of config defaults). New server.logFileNotFound boolean.
Robert Brewer
Merged /requestobj branch to trunk. cherrypy.serving.request and .response are now instances of _cphttptools.Request and .Response. ALL HTTP SERVER AUTHORS NEED TO UPGRADE THEIR INTERFACES to _cpserver.request as the signature has changed.
Robert Brewer
Phew. Tracked down all possible occurrences of KeyboardInterrupt and trapped them appropriately. There's still a problem in test_states when using the CherryPyHTTPServer (it hangs during KeyboardInterrupt testing), but all other servers pass. Maybe *this* fixes #321. ;)
Robert Brewer
Fix for #309 (confusion between threads and requests).
Remi Delon
Implemented ticket #90 (still need to write docs though)
Michael Robinson
httperrors branch merged into the trunk, the configuration paramater "showTracebacks" is now "server.showTracebacks"
John P. Speno
Added cherrypy.request.remotePort; the TCP port from which the client's connection originates. Added this attribute to the book also.
Robert Brewer
Found another errno to trap in _cpwsgiserver.WorkerThread.run
Robert Brewer
_cpwsgi might receive a request-uri with spaces (which would break _cphttptools.Request.parseFirstLine), so escape such.
Robert Brewer
Changed locals "req", "resp" to "request", "response" for better grep-ability.
Robert Brewer
New "showTracebacks" config option.
Robert Brewer
Request-URI of "*" can now be served by an exposed "cherrypy.root._global" method.
Robert Brewer
Fix for ticket #202 (only send tracebacks in development mode).
Robert Brewer
Better docstrings for _cphttptools, _cpwsgi.
Robert Brewer
Whew. All tests now pass for all servers in both 1.0 and 1.1 modes. There's also a new assertNoHeader method for webtest.
Robert Brewer
Even more better error-handling in _cpwsgi.
Robert Brewer
Added a cherrypy._appserver_state flag. Helps report errors when server.start() has not been called or did not complete normally.
  1. Prev
  2. 1
  3. 2
  4. Next