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
93320968
Kaydet (Commit)
93320968
authored
Ock 25, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
üst
b72e69e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
test_epoll.py
Lib/test/test_epoll.py
+0
-11
NEWS
Misc/NEWS
+1
-5
selectmodule.c
Modules/selectmodule.c
+1
-3
No files found.
Lib/test/test_epoll.py
Dosyayı görüntüle @
93320968
...
...
@@ -217,17 +217,6 @@ class TestEPoll(unittest.TestCase):
server
.
close
()
ep
.
unregister
(
fd
)
def
test_timeout_rounding
(
self
):
# epoll_wait() has a resolution of 1 millisecond, check if the timeout
# is correctly rounded to the upper bound
epoll
=
select
.
epoll
()
self
.
addCleanup
(
epoll
.
close
)
for
timeout
in
(
1e-2
,
1e-3
,
1e-4
):
t0
=
time
.
monotonic
()
epoll
.
poll
(
timeout
)
dt
=
time
.
monotonic
()
-
t0
self
.
assertGreaterEqual
(
dt
,
timeout
)
def
test_main
():
support
.
run_unittest
(
TestEPoll
)
...
...
Misc/NEWS
Dosyayı görüntüle @
93320968
...
...
@@ -58,10 +58,6 @@ Library
- Issue #20374: Fix build with GNU readline >= 6.3.
- Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond
is now rounded to one millisecond, instead of being rounded to zero.
- Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
...
...
@@ -278,7 +274,7 @@ IDLE
--Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
- Issue #18960: IDLE now ignores the source encoding declaration on the second
line if the first line contains anything except a comment.
...
...
Modules/selectmodule.c
Dosyayı görüntüle @
93320968
...
...
@@ -1379,9 +1379,7 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
return
NULL
;
}
else
{
/* epoll_wait() has a resolution of 1 millisecond, round away from zero
to wait *at least* dtimeout seconds. */
timeout
=
(
int
)
ceil
(
dtimeout
*
1000
.
0
);
timeout
=
(
int
)(
dtimeout
*
1000
.
0
);
}
if
(
maxevents
==
-
1
)
{
...
...
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