Source

CherryPy / _cpwsgi.py

Author Commit Message Labels Comments Date
Christian Wyglendowski
Fixed an issue with wrapping plain WSGI callables and removed some pre-remix code.
Branches
cp3-wsgi-remix
Christian Wyglendowski
Created a branch for some WSGI related ideas that I have implemented.
Branches
cp3-wsgi-remix
Robert Brewer
Missing call to request.close() on KeyboardInterrupt, SystemExit within buffered page handler.
Branches
cherrypy
Robert Brewer
New server.socket_timeout config entry, thanks to Albert Visagie. See http://groups.google.com/group/cherrypy-devel/browse_frm/thread/ef761a8063cdc72b
Branches
cherrypy
Robert Brewer
Replaced request.remote_addr, remote_port, and remote_host with a single "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
Branches
cherrypy
Robert Brewer
WSGI-related changes:
Branches
cherrypy
Robert Brewer
If we assume all incoming request header names are uppercase, we get a big speedup. If anyone ever complains about this, it's easy enough to revert.
Branches
cherrypy
Robert Brewer
Optimized {{{_cpwsgi.translate_headers}}}.
Branches
cherrypy
Robert Brewer
benchmark still needed socket-error suppression.
Branches
cherrypy
Robert Brewer
New _cpwsgi.make_app function for creating isolated WSGI application callables. You should only need to use it if two WSGI apps share the same script_name, or if you use a WSGI tool which expects a separate callable for each app.
Branches
cherrypy
Robert Brewer
Renamed httptools to "http" to reduce confusion with new cherrypy.tools. Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.
Branches
cherrypy
Robert Brewer
Comment improvements.
Branches
cherrypy
Robert Brewer
Made tree.Application.script_name, and it now defaults to "", not "/".
Branches
cherrypy
Robert Brewer
Moved log_access to a config entry.
Branches
cherrypy
Robert Brewer
Root and config are now isolated per app:
Branches
cherrypy
Robert Brewer
Moved the following config keys out of the "server." namespace (so that "server." may mean "httpserver"):
Branches
cherrypy
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app):
Branches
cherrypy
Robert Brewer
Partial fix for #511 (wsgi default encoding).
Branches
cherrypy
Robert Brewer
Lots of changes to error and log handling:
Branches
cherrypy
Robert Brewer
Fix for #496 (memory leak in threadlocal objects).
Branches
cherrypy
Robert Brewer
Fix for broken test in [990].
Branches
cherrypy
Robert Brewer
Speed tweak: you can now set max_header_size and max_request_size to 0 to explicitly skip using SizeWrappers.
Branches
cherrypy
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.
Branches
cherrypy
Christian Wyglendowski
1. Removed request.wsgi_environ from _cphttpserver.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
New signature for cherrypy.log.
Branches
cherrypy
Robert Brewer
Fix for #186 (allow exceptions to escape CP and up into WSGI middleware).
Branches
cherrypy
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
Fix for #388 (IPv6 support). While I was up to my elbows in the HTTP servers, I went ahead and:
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next