]> granicus.if.org Git - python/commitdiff
merge with 3.2
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 3 Jan 2012 21:47:28 +0000 (22:47 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 3 Jan 2012 21:47:28 +0000 (22:47 +0100)
1  2 
Doc/library/socketserver.rst

index 497e3eeac56f8540a5e5eaf0d5f42c158168b4de,34bcce0e448079d9ad0bf5e7d96db8e80f2f544a..091af03faf0ebd16e81bd7f9918ca3ea4c137094
@@@ -153,26 -153,14 +153,26 @@@ Server Object
  
  .. method:: BaseServer.serve_forever(poll_interval=0.5)
  
-    Handle requests until an explicit :meth:`shutdown` request.  Polls for
-    shutdown every *poll_interval* seconds.  It also calls
+    Handle requests until an explicit :meth:`shutdown` request.
 -   Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`.
 -   If you need to do periodic tasks, do them in another thread.
++   Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`.  It also calls
 +   :meth:`service_actions` which may be used by a subclass or Mixin to provide
 +   various cleanup actions.  For e.g. ForkingMixin class uses
 +   :meth:`service_actions` to cleanup the zombie child processes.
  
 +   .. versionchanged:: 3.3
 +       Added service_actions call to the serve_forever method.
 +
 +
 +.. method:: BaseServer.service_actions()
 +
 +   This is called by the serve_forever loop. This method is can be overridden
 +   by Mixin's to add cleanup or service specific actions.
 +
 +   .. versionadded:: 3.3
  
  .. method:: BaseServer.shutdown()
  
-    Tells the :meth:`serve_forever` loop to stop and waits until it does.
 -   Tell the :meth:`serve_forever` loop to stop and wait until it does.
++   Tell the :meth:`serve_forever` loop to stop and waits until it does.
  
  
  .. attribute:: BaseServer.address_family