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
5aac8b7c
Kaydet (Commit)
5aac8b7c
authored
Agu 29, 2013
tarafından
Charles-François Natali
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
üst
08350fb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
test_socket.py
Lib/test/test_socket.py
+3
-2
test_support.py
Lib/test/test_support.py
+8
-2
No files found.
Lib/test/test_socket.py
Dosyayı görüntüle @
5aac8b7c
...
...
@@ -688,11 +688,12 @@ class GeneralModuleTests(unittest.TestCase):
c
.
settimeout
(
1.5
)
with
self
.
assertRaises
(
ZeroDivisionError
):
signal
.
alarm
(
1
)
c
.
sendall
(
b
"x"
*
(
1024
**
2
)
)
c
.
sendall
(
b
"x"
*
test_support
.
SOCK_MAX_SIZE
)
if
with_timeout
:
signal
.
signal
(
signal
.
SIGALRM
,
ok_handler
)
signal
.
alarm
(
1
)
self
.
assertRaises
(
socket
.
timeout
,
c
.
sendall
,
b
"x"
*
(
1024
**
2
))
self
.
assertRaises
(
socket
.
timeout
,
c
.
sendall
,
b
"x"
*
test_support
.
SOCK_MAX_SIZE
)
finally
:
signal
.
signal
(
signal
.
SIGALRM
,
old_alarm
)
c
.
close
()
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
5aac8b7c
...
...
@@ -411,8 +411,14 @@ def fcmp(x, y): # fuzzy comparison function
# Windows limit seems to be around 512 B, and many Unix kernels have a
# 64 KiB pipe buffer size or 16 * PAGE_SIZE: take a few megs to be sure.
# (see issue #17835 for a discussion of this number).
PIPE_MAX_SIZE
=
4
*
1024
*
1024
+
1
PIPE_MAX_SIZE
=
4
*
1024
*
1024
+
1
# A constant likely larger than the underlying OS socket buffer size, to make
# writes blocking.
# The socket buffer sizes can usually be tuned system-wide (e.g. through sysctl
# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). See issue #18643
# for a discussion of this number).
SOCK_MAX_SIZE
=
16
*
1024
*
1024
+
1
try
:
unicode
...
...
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