summaryrefslogtreecommitdiffstats
path: root/Doc/library/socketserver.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-10-02 01:43:46 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-10-02 01:43:46 (GMT)
commit258fabefdefecc83914fc16f79f1131d8ee2dc80 (patch)
tree30f400a3151f8d9119ba5df9dfcb1ad8b78a5e20 /Doc/library/socketserver.rst
parent7eb03ddf118c01ef2ae64f013493386f520eb3ec (diff)
downloadcpython-258fabefdefecc83914fc16f79f1131d8ee2dc80.zip
cpython-258fabefdefecc83914fc16f79f1131d8ee2dc80.tar.gz
cpython-258fabefdefecc83914fc16f79f1131d8ee2dc80.tar.bz2
#11109: clean up docs, add whatsnew entry, and fix Justin's last name.
Diffstat (limited to 'Doc/library/socketserver.rst')
-rw-r--r--Doc/library/socketserver.rst18
1 files changed, 10 insertions, 8 deletions
diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst
index 7dc0cc7..28e8a0a 100644
--- a/Doc/library/socketserver.rst
+++ b/Doc/library/socketserver.rst
@@ -153,20 +153,22 @@ Server Objects
.. method:: BaseServer.serve_forever(poll_interval=0.5)
- Handle requests until an explicit :meth:`shutdown` request.
- 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.
+ Handle requests until an explicit :meth:`shutdown` request. 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 actions specific to a given service. For example, the
+ :class:`ForkingMixIn` class uses :meth:`service_actions` to clean up zombie
+ child processes.
.. versionchanged:: 3.3
- Added service_actions call to the serve_forever method.
+ 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.
+ This is called in the :meth:`serve_forever` loop. This method is can be
+ overridden by subclasses or mixin classes to perform actions specific to
+ a given service, such as cleanup actions.
.. versionadded:: 3.3