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
dd802208
Kaydet (Commit)
dd802208
authored
Ara 13, 2000
tarafından
Moshe Zadka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changing allow_reuse_address's default value, and documenting it.
üst
a63bd1c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
libsocksvr.tex
Doc/lib/libsocksvr.tex
+5
-0
SocketServer.py
Lib/SocketServer.py
+1
-1
No files found.
Doc/lib/libsocksvr.tex
Dosyayı görüntüle @
dd802208
...
@@ -94,6 +94,11 @@ The socket object on which the server will listen for incoming requests.
...
@@ -94,6 +94,11 @@ The socket object on which the server will listen for incoming requests.
The server classes support the following class variables:
The server classes support the following class variables:
\begin{datadesc}
{
allow
_
reuse
_
address
}
Whether the server will allow the reuse of an address. This defaults
to true, and can be set in subclasses to change the policy.
\end{datadesc}
\begin{datadesc}
{
request
_
queue
_
size
}
\begin{datadesc}
{
request
_
queue
_
size
}
The size of the request queue. If it takes a long time to process a
The size of the request queue. If it takes a long time to process a
single request, any requests that arrive while the server is busy are
single request, any requests that arrive while the server is busy are
...
...
Lib/SocketServer.py
Dosyayı görüntüle @
dd802208
...
@@ -157,7 +157,7 @@ class TCPServer:
...
@@ -157,7 +157,7 @@ class TCPServer:
request_queue_size
=
5
request_queue_size
=
5
allow_reuse_address
=
0
allow_reuse_address
=
1
def
__init__
(
self
,
server_address
,
RequestHandlerClass
):
def
__init__
(
self
,
server_address
,
RequestHandlerClass
):
"""Constructor. May be extended, do not override."""
"""Constructor. May be extended, do not override."""
...
...
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