Source

CherryPy / cherrypy / _cpserver.py

Author Commit Message Labels Comments Date
Robert Brewer
Fix for #756 (Deprecate server.quickstart):
Robert Brewer
Trunk fix for #752 (Return cherrypy.server to a single-server model):
Robert Brewer
Fix for #740 (Default server.socket_host to IPv4 address).
Robert Brewer
Reworked WSPBus plugins; most now have a 'subscribe' method which attaches them to the bus in a separate step from init. This allows frameworks to create canonical plugin instances but delay or skip their subscription.
Robert Brewer
Moved most of cpserver into a new restsrv.servers module.
Robert Brewer
Fix for #665 (ssl certificate exceptions are not logged).
Robert Brewer
Server docstring update.
Robert Brewer
Upgraded all INADDR_ANY and localhost checks to include IPv6 equivalents.
Robert Brewer
Fix for #643 (socket_host is confusing). Empty string and None are now illegal values for socket_host; use '0.0.0.0' instead for INADDR_ANY.
Robert Brewer
Fix for #691 (Repeated Ctrl-C hangs wsgiserver). It took a bit of doing, but test_states passes on my box. If others can try test_states with and without the -ssl flag, that would be a big help.
Robert Brewer
New pywebd module. Trunk is now "3.1alpha".
Robert 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
Changes to socket_host:
Robert Brewer
Renamed {{{_cpwsgiserver.py}}} to {{{wsgiserver.py}}}, to make it more clear that it's a public, reusable module. Also renamed {{{_cpwsgi.WSGIServer}}} to {{{_cpwsgi.CPWSGIServer}}}, to match the naming convention of the other subclasses in that module.
Robert Brewer
Tweaks.
Robert Brewer
SSL support for _cpwsgiserver. One test fails immaterially. Run "test.py --ssl" to test.
Robert Brewer
Fix for #548 (Rename the before_main hook to before_handler and MainTool to HandlerTool).
Robert Brewer
Fix for #560 (misleading log on socket_host="") for CP 2.2 and CP 3.
Robert Brewer
raise ValueError on cherrypy.server.start() if no httpservers defined.
Robert Brewer
Fix for #557 (socket_file). We should talk about a server.socket_family attribute sometime.
Robert Brewer
API and docstring cleanups:
Robert Brewer
More (final?) config overhaul work:
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.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
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
Renamed httptools to "http" to reduce confusion with new cherrypy.tools. Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.
Robert Brewer
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Robert Brewer
Removed duplicate wait_for_occupied_port logic.
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app):
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next