Commits

Anonymous committed 8eb9a33

Changed page WhatsNewIn31

Comments (0)

Files changed (1)

WhatsNewIn31.wiki

 
 == Web Site Process Bus ==
 
-CherryPy 3 separated the socket code (server) from the site startup/shutdown code (engine), and 3.1 continues down that road. The "engine" object is now a complete site container, with "start", "stop", and "restart" methods. To take full advantage of this, you write your site startup code as plugins to the engine. Most of the builtin startup code has already been converted for you. For example, instead of telling cherrypy.server to start, you tell the engine to start cherrypy.server for you during the 'start' event: {{{cherrypy.server.mgr.subscribe()}}}.
+CherryPy 3 separated the socket code (server) from the site startup/shutdown code (engine), and 3.1 continues down that road. The "engine" object is now a complete site container, with "start", "stop", and "restart" methods. To take full advantage of this, you write your site startup code as plugins to the engine. Most of the builtin startup code has already been converted for you. For example, instead of telling cherrypy.server to start, you may now just start the engine.
 
 Centralizing startup and shutdown behavior in this fashion has made the Autoreload feature much more stable, as well as introducing tools for daemonization, pid files, timers, and other plugins. It also allows platform-specific process-management code; for example, the Win32 bus uses native code for signaling and blocking.
 
 
 == Request and Response creation ==
 
-In 3.0, the Engine would create the Request and Response objects. In 3.1, the Application object has that responsibility via its get_serving and release_serving methods. This makes the request object overridable per-app.
+In 3.0, the Engine would create the Request and Response objects. In 3.1, the Application object has that responsibility via its get_serving and release_serving methods. This makes the request object overridable per-app, and also removes the dependency on the engine object.
 
 
 == Available Toolboxes ==