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
00f4648a
Kaydet (Commit)
00f4648a
authored
Nis 01, 2016
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.5 (asyncio)
üst
89d3f53a
c94a93ae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
base_events.py
Lib/asyncio/base_events.py
+6
-0
proactor_events.py
Lib/asyncio/proactor_events.py
+1
-1
selector_events.py
Lib/asyncio/selector_events.py
+1
-2
sslproto.py
Lib/asyncio/sslproto.py
+1
-1
unix_events.py
Lib/asyncio/unix_events.py
+1
-1
No files found.
Lib/asyncio/base_events.py
Dosyayı görüntüle @
00f4648a
...
...
@@ -54,6 +54,12 @@ _MIN_SCHEDULED_TIMER_HANDLES = 100
# before cleanup of cancelled handles is performed.
_MIN_CANCELLED_TIMER_HANDLES_FRACTION
=
0.5
# Exceptions which must not call the exception handler in fatal error
# methods (_fatal_error())
_FATAL_ERROR_IGNORE
=
(
BrokenPipeError
,
ConnectionResetError
,
ConnectionAbortedError
)
def
_format_handle
(
handle
):
cb
=
handle
.
_callback
if
inspect
.
ismethod
(
cb
)
and
isinstance
(
cb
.
__self__
,
tasks
.
Task
):
...
...
Lib/asyncio/proactor_events.py
Dosyayı görüntüle @
00f4648a
...
...
@@ -91,7 +91,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
self
.
close
()
def
_fatal_error
(
self
,
exc
,
message
=
'Fatal error on pipe transport'
):
if
isinstance
(
exc
,
(
BrokenPipeError
,
ConnectionResetError
)
):
if
isinstance
(
exc
,
base_events
.
_FATAL_ERROR_IGNORE
):
if
self
.
_loop
.
get_debug
():
logger
.
debug
(
"
%
r:
%
s"
,
self
,
message
,
exc_info
=
True
)
else
:
...
...
Lib/asyncio/selector_events.py
Dosyayı görüntüle @
00f4648a
...
...
@@ -579,8 +579,7 @@ class _SelectorTransport(transports._FlowControlMixin,
def
_fatal_error
(
self
,
exc
,
message
=
'Fatal error on transport'
):
# Should be called from exception handler only.
if
isinstance
(
exc
,
(
BrokenPipeError
,
ConnectionResetError
,
ConnectionAbortedError
)):
if
isinstance
(
exc
,
base_events
.
_FATAL_ERROR_IGNORE
):
if
self
.
_loop
.
get_debug
():
logger
.
debug
(
"
%
r:
%
s"
,
self
,
message
,
exc_info
=
True
)
else
:
...
...
Lib/asyncio/sslproto.py
Dosyayı görüntüle @
00f4648a
...
...
@@ -656,7 +656,7 @@ class SSLProtocol(protocols.Protocol):
def
_fatal_error
(
self
,
exc
,
message
=
'Fatal error on transport'
):
# Should be called from exception handler only.
if
isinstance
(
exc
,
(
BrokenPipeError
,
ConnectionResetError
)
):
if
isinstance
(
exc
,
base_events
.
_FATAL_ERROR_IGNORE
):
if
self
.
_loop
.
get_debug
():
logger
.
debug
(
"
%
r:
%
s"
,
self
,
message
,
exc_info
=
True
)
else
:
...
...
Lib/asyncio/unix_events.py
Dosyayı görüntüle @
00f4648a
...
...
@@ -577,7 +577,7 @@ class _UnixWritePipeTransport(transports._FlowControlMixin,
def
_fatal_error
(
self
,
exc
,
message
=
'Fatal error on pipe transport'
):
# should be called by exception handler only
if
isinstance
(
exc
,
(
BrokenPipeError
,
ConnectionResetError
)
):
if
isinstance
(
exc
,
base_events
.
_FATAL_ERROR_IGNORE
):
if
self
.
_loop
.
get_debug
():
logger
.
debug
(
"
%
r:
%
s"
,
self
,
message
,
exc_info
=
True
)
else
:
...
...
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