Source

CherryPy / _cpengine.py

Author Commit Message Labels Comments Date
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Branches
cherrypy
Robert Brewer
New deadlock monitor which sets Response.timed_out to True if Response.time < now - config.get("deadlock_timeout"). The request thread periodically checkes Response.timed_out and raises TimeoutError if it is True. Current checks are in HookMap.run, Request.respond, Body.__set__, and Response.finalize, more can be added later if needed.
Branches
cherrypy
Christian Wyglendowski
Giving NotReadyRequest a protocol attribute.
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
Fix for #438 (autoreload.py: Server fails to start if a .pyc is imported with no corresponding .py).
Branches
cherrypy
Robert Brewer
silently disable signal handlers when running behind Apache (i.e. when "import _cprequest" is not done in the main thread).
Branches
cherrypy
Robert Brewer
Oops. Windows doesn't have SIGHUP.
Branches
cherrypy
Robert Brewer
Fix for #540.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
Cleanup of cherrypy and cherrypy.config namespaces. Changed 'log_config_options' to 'log_config'. Moved cherrypy.set_config to cherrypy.config.wrap.
Branches
cherrypy
Robert Brewer
Moved coverage out of the core.
Branches
cherrypy
Robert Brewer
More unnecessary imports removed.
Branches
cherrypy
Robert Brewer
Made Engine.stop check Engine.state. This allows e.g. mod_python to call stop() once per thread on shutdown.
Branches
cherrypy
Robert Brewer
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Branches
cherrypy
Robert Brewer
Comment improvements.
Branches
cherrypy
Robert Brewer
Moved the profiler setup into _cprequest (so it's all in one place now).
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
Removed a bunch of instances of the word "filter".
Branches
cherrypy
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Branches
cherrypy
Robert Brewer
New Engine.response_class attribute (which allows a new -null switch for benchmark.py, to show how much of the request is spent in the HTTP server as opposed to the Request object).
Branches
cherrypy
Robert Brewer
server.stop() works now even if init_only is False.
Branches
cherrypy
Robert Brewer
Another re-raise of SystemExit.
Branches
cherrypy
Robert Brewer
Final fix for #461 and #455:
Branches
cherrypy