Commits

Author Commit Message Labels Comments Date
Robert Brewer
Eliminated 'default_content_type' config entry by moving tools.response_headers to on_start_resource. If anyone still needs response headers to be set late, they can call tools.response_headers later, either in code or via a hook declared in config.
Robert Brewer
Removed last useless cherrypy.debug test.
Robert Brewer
Fix for #438 (autoreload.py: Server fails to start if a .pyc is imported with no corresponding .py).
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.start.
Robert Brewer
CherryPyWSGIServer now clears its interrupt on start().
Robert Brewer
Fix for #537 (Support for listening on multiple ports). cherrypy.server now has no "httpserver" attribute; instead, it has an "httpservers" attribute, a dict of the form {server object: bind_addr} where bind_addr is usually (host, port). New start_all method. Calling stop stops all httpservers, and restart stops all then restarts all.
Robert Brewer
Better docstring for CherryPyWSGIServer.
Robert Brewer
Fix for testExpiresTool when behind Apache.
Robert Brewer
silently disable signal handlers when running behind Apache (i.e. when "import _cprequest" is not done in the main thread).
Robert Brewer
Fix for #542 (_cpwsgiserver should concatenate multiple incoming headers).
Robert Brewer
Oops. Windows doesn't have SIGHUP.
Robert Brewer
Fix for #540.
Robert Brewer
Fixes for #544 and #545 (serveFile issues) in CP 3. Fixes in CP 2 branch coming in a separate changeset.
Robert Brewer
If not cacheable, we shouldn't even set Expires.
Robert Brewer
Test and fix for bug in expires tool.
Robert Brewer
Oops. Forgot a file.
Robert Brewer
Py 2.3 doesn't do multiline imports.
Robert Brewer
Merged the reexec branch. Autoreload now uses exec instead of spawn, and therefore never runs more than one process at a time. There's a new test for autoreload in test_states.py.
Robert Brewer
More work on tools.expires:
Christian Wyglendowski
1. New "expires" tool for setting the "Expires" header.
Robert Brewer
Various speedups, the only notable one being that environments are now always flattened as soon as possible.
Robert Brewer
Moved RFC 2047 encoding into http.HeaderMap. Changed HeaderMap.sorted_list to HeaderMap.output (which does not sort).
Robert Brewer
Precompile some regexes for a speed boost.
Robert Brewer
Caching tool invocation optimization.
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.
Robert Brewer
Some tool optimizations.
Robert Brewer
Optimized {{{_cpwsgi.translate_headers}}}.
Robert Brewer
New ProfileAggregator class.
Robert Brewer
Moved profiling into WSGI middleware.
Robert Brewer
Reverting [1165], [1182]. Turns out it wasn't necessary for encoded request headers, and only served to slow CP by about 5%.
  1. Prev
  2. Next