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
944451cd
Kaydet (Commit)
944451cd
authored
Tem 31, 2018
tarafından
MartinAltmayer
Kaydeden (comit)
Yury Selivanov
Tem 31, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)
üst
9c18b1ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+0
-4
base_events.py
Lib/asyncio/base_events.py
+4
-1
2018-07-28-17-00-36.bpo-34263.zUfRsu.rst
...S.d/next/Library/2018-07-28-17-00-36.bpo-34263.zUfRsu.rst
+2
-0
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
944451cd
...
@@ -173,10 +173,6 @@ Which clock is used depends on the (platform-specific) event loop
...
@@ -173,10 +173,6 @@ Which clock is used depends on the (platform-specific) event loop
implementation; ideally it is a monotonic clock. This will generally be
implementation; ideally it is a monotonic clock. This will generally be
a different clock than :func:`time.time`.
a different clock than :func:`time.time`.
.. note::
Timeouts (relative *delay* or absolute *when*) should not exceed one day.
.. method:: AbstractEventLoop.call_later(delay, callback, *args, context=None)
.. method:: AbstractEventLoop.call_later(delay, callback, *args, context=None)
...
...
Lib/asyncio/base_events.py
Dosyayı görüntüle @
944451cd
...
@@ -63,6 +63,9 @@ _FATAL_ERROR_IGNORE = (BrokenPipeError,
...
@@ -63,6 +63,9 @@ _FATAL_ERROR_IGNORE = (BrokenPipeError,
_HAS_IPv6
=
hasattr
(
socket
,
'AF_INET6'
)
_HAS_IPv6
=
hasattr
(
socket
,
'AF_INET6'
)
# Maximum timeout passed to select to avoid OS limitations
MAXIMUM_SELECT_TIMEOUT
=
24
*
3600
def
_format_handle
(
handle
):
def
_format_handle
(
handle
):
cb
=
handle
.
_callback
cb
=
handle
.
_callback
...
@@ -1708,7 +1711,7 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -1708,7 +1711,7 @@ class BaseEventLoop(events.AbstractEventLoop):
elif
self
.
_scheduled
:
elif
self
.
_scheduled
:
# Compute the desired timeout.
# Compute the desired timeout.
when
=
self
.
_scheduled
[
0
]
.
_when
when
=
self
.
_scheduled
[
0
]
.
_when
timeout
=
m
ax
(
0
,
when
-
self
.
time
()
)
timeout
=
m
in
(
max
(
0
,
when
-
self
.
time
()),
MAXIMUM_SELECT_TIMEOUT
)
if
self
.
_debug
and
timeout
!=
0
:
if
self
.
_debug
and
timeout
!=
0
:
t0
=
self
.
time
()
t0
=
self
.
time
()
...
...
Misc/NEWS.d/next/Library/2018-07-28-17-00-36.bpo-34263.zUfRsu.rst
0 → 100644
Dosyayı görüntüle @
944451cd
asyncio's event loop will not pass timeouts longer than one day to
epoll/select etc.
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