Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6e7bd654
Kaydet (Commit)
6e7bd654
authored
Eki 02, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge #11109: clean up docs, add whatsnew entry, and fix Justin's last name.
üst
3b635cd4
258fabef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
11 deletions
+23
-11
socketserver.rst
Doc/library/socketserver.rst
+10
-8
3.3.rst
Doc/whatsnew/3.3.rst
+10
-0
socketserver.py
Lib/socketserver.py
+1
-1
HISTORY
Misc/HISTORY
+2
-2
No files found.
Doc/library/socketserver.rst
Dosyayı görüntüle @
6e7bd654
...
@@ -153,20 +153,22 @@ Server Objects
...
@@ -153,20 +153,22 @@ Server Objects
.. method:: BaseServer.serve_forever(poll_interval=0.5)
.. method:: BaseServer.serve_forever(poll_interval=0.5)
Handle requests until an explicit :meth:`shutdown` request.
Handle requests until an explicit :meth:`shutdown` request. Poll for
Poll for shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`. It also calls
shutdown every *poll_interval* seconds. Ignores :attr:`self.timeout`. It
:meth:`service_actions` which may be used by a subclass or Mixin to provide
also calls :meth:`service_actions`, which may be used by a subclass or mixin
various cleanup actions. For e.g. ForkingMixin class uses
to provide actions specific to a given service. For example, the
:meth:`service_actions` to cleanup the zombie child processes.
:class:`ForkingMixIn` class uses :meth:`service_actions` to clean up zombie
child processes.
.. versionchanged:: 3.3
.. 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()
.. method:: BaseServer.service_actions()
This is called by the serve_forever loop. This method is can be overridden
This is called in the :meth:`serve_forever` loop. This method is can be
by Mixin's to add cleanup or service specific actions.
overridden by subclasses or mixin classes to perform actions specific to
a given service, such as cleanup actions.
.. versionadded:: 3.3
.. versionadded:: 3.3
...
...
Doc/whatsnew/3.3.rst
Dosyayı görüntüle @
6e7bd654
...
@@ -1805,6 +1805,16 @@ socket
...
@@ -1805,6 +1805,16 @@ socket
(Contributed by Ross Lagerwall in :issue:`10866`.)
(Contributed by Ross Lagerwall in :issue:`10866`.)
socketserver
------------
:class:`~socketserver.BaseServer` now has an overridable method
:meth:`~socketserver.BaseServer.service_actions` that is called by the
:meth:`~socketserver.BaseServer.serve_forever` method in the service loop.
:class:`~socketserver.ForkingMixIn` now uses this to clean up zombie
child proceses. (Contributed by Justin Warkentin in :issue:`11109`.)
sqlite3
sqlite3
-------
-------
...
...
Lib/socketserver.py
Dosyayı görüntüle @
6e7bd654
...
@@ -562,7 +562,7 @@ class ForkingMixIn:
...
@@ -562,7 +562,7 @@ class ForkingMixIn:
self
.
collect_children
()
self
.
collect_children
()
def
service_actions
(
self
):
def
service_actions
(
self
):
"""Collect the zombie child processes regularly in the ForkingMix
i
n.
"""Collect the zombie child processes regularly in the ForkingMix
I
n.
service_actions is called in the BaseServer's serve_forver loop.
service_actions is called in the BaseServer's serve_forver loop.
"""
"""
...
...
Misc/HISTORY
Dosyayı görüntüle @
6e7bd654
...
@@ -3187,8 +3187,8 @@ Library
...
@@ -3187,8 +3187,8 @@ Library
- Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError
- Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError
if the file is closed.
if the file is closed.
- Issue #11109: New service_action method for BaseServer, used by ForkingMix
i
n
- Issue #11109: New service_action method for BaseServer, used by ForkingMix
I
n
class for cleanup. Initial Patch by Justin Wark.
class for cleanup. Initial Patch by Justin Wark
entin
.
- Issue #12045: Avoid duplicate execution of command in
- Issue #12045: Avoid duplicate execution of command in
ctypes.util._get_soname(). Patch by Sijin Joseph.
ctypes.util._get_soname(). Patch by Sijin Joseph.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment