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
16b7b7d6
Kaydet (Commit)
16b7b7d6
authored
8 years ago
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge heads
üst
20cdffd8
b1461aa7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
sslproto.py
Lib/asyncio/sslproto.py
+1
-0
test_sslproto.py
Lib/test/test_asyncio/test_sslproto.py
+10
-0
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/asyncio/sslproto.py
Dosyayı görüntüle @
16b7b7d6
...
...
@@ -479,6 +479,7 @@ class SSLProtocol(protocols.Protocol):
self
.
_loop
.
call_soon
(
self
.
_app_protocol
.
connection_lost
,
exc
)
self
.
_transport
=
None
self
.
_app_transport
=
None
self
.
_wakeup_waiter
(
exc
)
def
pause_writing
(
self
):
"""Called when the low-level transport's buffer goes over
...
...
This diff is collapsed.
Click to expand it.
Lib/test/test_asyncio/test_sslproto.py
Dosyayı görüntüle @
16b7b7d6
...
...
@@ -85,5 +85,15 @@ class SslProtoHandshakeTests(test_utils.TestCase):
# Restore error logging.
log
.
logger
.
setLevel
(
log_level
)
def
test_connection_lost
(
self
):
# From issue #472.
# yield from waiter hang if lost_connection was called.
waiter
=
asyncio
.
Future
(
loop
=
self
.
loop
)
ssl_proto
=
self
.
ssl_protocol
(
waiter
)
self
.
connection_made
(
ssl_proto
)
ssl_proto
.
connection_lost
(
ConnectionAbortedError
)
test_utils
.
run_briefly
(
self
.
loop
)
self
.
assertIsInstance
(
waiter
.
exception
(),
ConnectionAbortedError
)
if
__name__
==
'__main__'
:
unittest
.
main
()
This diff is collapsed.
Click to expand it.
Misc/NEWS
Dosyayı görüntüle @
16b7b7d6
...
...
@@ -485,6 +485,10 @@ Library
- Issue #24142: Reading a corrupt config file left the parser in an
invalid state. Original patch by Florian Höch.
- Issue #28990: Fix SSL hanging if connection is closed before handshake
completed.
(Patch by HoHo-Ho)
IDLE
----
...
...
This diff is collapsed.
Click to expand it.
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