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
d021c1d3
Kaydet (Commit)
d021c1d3
authored
Ock 15, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4 (asyncio)
üst
7d78d0d9
fcd58de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
proactor_events.py
Lib/asyncio/proactor_events.py
+6
-4
No files found.
Lib/asyncio/proactor_events.py
Dosyayı görüntüle @
d021c1d3
...
...
@@ -43,12 +43,12 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
def
__repr__
(
self
):
info
=
[
self
.
__class__
.
__name__
]
fd
=
self
.
_sock
.
fileno
()
if
fd
<
0
:
if
self
.
_sock
is
None
:
info
.
append
(
'closed'
)
elif
self
.
_closing
:
info
.
append
(
'closing'
)
info
.
append
(
'fd=
%
s'
%
fd
)
if
self
.
_sock
is
not
None
:
info
.
append
(
'fd=
%
s'
%
self
.
_sock
.
fileno
())
if
self
.
_read_fut
is
not
None
:
info
.
append
(
'read=
%
s'
%
self
.
_read_fut
)
if
self
.
_write_fut
is
not
None
:
...
...
@@ -72,6 +72,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
self
.
_loop
.
call_soon
(
self
.
_call_connection_lost
,
None
)
if
self
.
_read_fut
is
not
None
:
self
.
_read_fut
.
cancel
()
self
.
_read_fut
=
None
def
_fatal_error
(
self
,
exc
,
message
=
'Fatal error on pipe transport'
):
if
isinstance
(
exc
,
(
BrokenPipeError
,
ConnectionResetError
)):
...
...
@@ -93,9 +94,10 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
self
.
_conn_lost
+=
1
if
self
.
_write_fut
:
self
.
_write_fut
.
cancel
()
self
.
_write_fut
=
None
if
self
.
_read_fut
:
self
.
_read_fut
.
cancel
()
self
.
_write_fut
=
self
.
_read_fut
=
None
self
.
_read_fut
=
None
self
.
_pending_write
=
0
self
.
_buffer
=
None
self
.
_loop
.
call_soon
(
self
.
_call_connection_lost
,
exc
)
...
...
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