Source

CherryPy / _cpserver.py

The branch 'cherrypy' does not exist.
Author Commit Message Labels Comments Date
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.start.
Branches
cherrypy
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.
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. The state-management for the HTTP server is a mess, by the way. I only got test_states' KeyboardInterrupt test working by inlining the client threads. So wait() and interrupts, etc. only really work when there's a single master thread. This needs fixed.
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
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Branches
cherrypy
Robert Brewer
Removed duplicate wait_for_occupied_port logic.
Branches
cherrypy
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app): 1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a st…
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
Christian Wyglendowski
Addresses #480. init_only can now be set in the config (server.init_only). server.class already existed. server.instance can also be set in the config. It corresponds to the "server" parameter in the cherrypy.server.start() method. Also added "embedded" server environment to simplify running CP embedded in mod_python, FastCGI, another WSGI server, etc.
Branches
cherrypy
Robert Brewer
server.stop() works now even if init_only is False.
Branches
cherrypy
Robert Brewer
Added meaningful prefixes to names of threads started by CP.
Branches
cherrypy
Remi Delon
Allow programs to quit and return an error code; Small fix in sessionauthenticatefilter
Branches
cherrypy
Robert Brewer
Final fix for #461 and #455: 1. There's a new _cpengine module which isolates the "app server" from the "HTTP server" state-management logic. _cpserver.Server inherits from _cpengine.Engine. The _cpengine module should remain clean so that it can be used with few changes in CP 3, at which point we can rewrite the http server API. 2. Fixed an issue with the native HTTP server--it wasn't truly restartable (closed but didn't r…
Branches
cherrypy
Christian Wyglendowski
[965] is the first of two changesets to modify some internal behavior. Unfortunately, it temporarily broke CP in the process. This changeset is a temporary fix to that temporary problem which Robert is addressing more completely.
Branches
cherrypy
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.
Branches
cherrypy
Robert Brewer
Oops. Forgot to take out a debug line.
Branches
cherrypy
Robert Brewer
Fix for server.start lowercase names (serverClass = None is different than serverClass = missing).
Branches
cherrypy
Remi Delon
Deprecated "initOnly" and "serverClass". New names are "init_only" and "server_class"
Branches
cherrypy
Robert Brewer
seen_threads really should belong to the Server class.
Branches
cherrypy
Robert Brewer
Made custom Request subclasses easier to implement: 1. Moved some required code from Request._run to Request.run, so overriding _run doesn't have to repeat it. 2. The _cpserver.Server class now has a request_class attribute, which is used to instantiate the class returned by server.request. It defaults to _cphttptools.Request.
Branches
cherrypy
Robert Brewer
Fix for #413 (Improve configuration error behavior).
Branches
cherrypy
Robert Brewer
server.wait now checks for server.interrupt, so start_with_callback won't hang on error in server.start.
Branches
cherrypy
Remi Delon
Better backward compatibility with pre-PEP8 conversion
Branches
cherrypy
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Branches
cherrypy
Robert Brewer
Patched _cpserver to allow check_port on IPv6 addresses (see #388). Also a fix for http://groups.google.com/group/cherrypy-users/browse_frm/thread/bbfe5eb39c904fe0.
Branches
cherrypy
Robert Brewer
Moved cherrypy.lib.filter to cherrypy.filters. The old path will work (with a warning) until 2.3, when it will be removed.
Branches
cherrypy
Robert Brewer
Moved filter-handling code into lib.filter.__init__.py. Also moved unrepr and modules(), attributes() functions into cptools.
Branches
cherrypy
Robert Brewer
Fix for #382 (autoreload call broken).
Branches
cherrypy
Robert Brewer
Fix for #308 (configure autoreload's poll rate).
Branches
cherrypy
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. Next