CherryPy / cherrypy / _cpengine.py

Author Commit Message Labels Comments Date
Robert Brewer avatarRobert Brewer
New engine.release method, which decouples request and engine. Also new server.base method, which simplifies cherrypy.url. Finally, cherrypy._serving is promoted to cherrypy.serving, and has a new "load" method.
Robert Brewer avatarRobert Brewer
Fix for #637 (Move signal handlers into Engine class).
Robert Brewer avatarRobert Brewer
Moved checker back to cherrypy.checker from engine, and also added a new check_config_types method. There's also a new checker config namespace, so you can turn off the checker with "checker.on = False", or turn off specific methods with "checker.check_method_foo = None".
Robert Brewer avatarRobert Brewer
checker:
Robert Brewer avatarRobert Brewer
New cherrypy.checker which runs by default in development mode.
Robert Brewer avatarRobert Brewer
New Engine.reexec_retry (timeout in seconds) for os.execv call.
Robert Brewer avatarRobert Brewer
Fix for #581 (Problem Re-spawning on Mac OS X).
Robert Brewer avatarRobert Brewer
Engine.stop was calling monitor_thread.cancel() but not .join(). Engine.monitor_thread is also now a PerpetualTimer, so it keeps the same thread rather than spawning new ones on each run.
Robert Brewer avatarRobert Brewer
More default attributes for NotReady.
Robert Brewer avatarRobert Brewer
docstring updates.
Robert Brewer avatarRobert Brewer
Made NotReadyRequest default to throw_errors = True.
Robert Brewer avatarRobert Brewer
Engine.drop_privileges: default umask to None.
Robert Brewer avatarRobert Brewer
Engine.drop_privileges: bugfix and allow uid/gid to be names or ints.
Robert Brewer avatarRobert Brewer
New engine.autoreload_match attribute for filtering autoreload to a single package (adapted from TG).
Robert Brewer avatarRobert Brewer
Fixes to test_states.
Robert Brewer avatarRobert Brewer
Oops.
Robert Brewer avatarRobert Brewer
Fix for #428 (drop privileges).
Robert Brewer avatarRobert Brewer
API and docstring cleanups:
Robert Brewer avatarRobert Brewer
Hook priority system:
Robert Brewer avatarRobert Brewer
More (final?) config overhaul work:
Robert Brewer avatarRobert Brewer
Overhaul of config system:
Robert Brewer avatarRobert Brewer
Fixed the HTTP/1.0 test suite. This involved moving wsgi SERVER_PROTOCOL back (to what the spec says!) and adding a new non-standard ACTUAL_SERVER_PROTOCOL entry.
Default avatar Christian Wyglendowski
Engine.monitor_thread defaults to None now.
Robert Brewer avatarRobert Brewer
Lots of mixedCase to lower_with_underscores.
Robert Brewer avatarRobert 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.
Default avatar Christian Wyglendowski
Giving NotReadyRequest a protocol attribute.
Robert Brewer avatarRobert 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.
Robert Brewer avatarRobert Brewer
WSGI-related changes:
Robert Brewer avatarRobert Brewer
Fix for #438 (autoreload.py: Server fails to start if a .pyc is imported with no corresponding .py).
Robert Brewer avatarRobert Brewer
silently disable signal handlers when running behind Apache (i.e. when "import _cprequest" is not done in the main thread).
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.