-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix callbacks race in asyncio.SelectorLoop.sock_connect #72363
Comments
Proxy issue for python/asyncio#366 |
New changeset 8550ab528a31 by Yury Selivanov in branch '3.5': New changeset 3d8ba65a0054 by Yury Selivanov in branch '3.6': New changeset 5024e2a82181 by Yury Selivanov in branch 'default': |
The timeout of 3 seconds seem to be too short for some buildbots like "AMD64 FreeBSD CURRENT Non-Debug 3.x". test.test_asyncio.test_windows_utils (unittest.loader.ModuleSkipped) ... Exception in thread Thread-50:
Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/test/test_asyncio/test_selector_events.py", line 1819, in run
sock, addr = self.srv_sock.accept()
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/socket.py", line 205, in accept
fd, addr = self._accept()
socket.timeout: timed out test test_asyncio failed ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/test/test_asyncio/test_selector_events.py", line 1868, in test_sock_connect_sock_write_race
timeout=TIMEOUT))
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncio/base_events.py", line 457, in run_until_complete
return future.result()
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncio/futures.py", line 292, in result
raise self._exception
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncio/tasks.py", line 397, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError |
Would increasing timeout to 10.0 be sufficient? Should we wrap the test with @support.reap_threads? |
New changeset 8417873f2eac by Berker Peksag in branch '3.5': New changeset b5a08d5db05b by Berker Peksag in branch '3.6': New changeset eb306c20de20 by Berker Peksag in branch 'default': |
For some reason, some tests fail randomly on FreeBSD buildbots. See also bpo-27784. I'm planning to apply the attached patch. |
New changeset 06efc625578a by Victor Stinner in branch '3.5': |
test_sock_connect_sock_write_race failure is being discussed in bpo-28283. Closing this again. |
Misc/NEWS
so that it is managed by towncrier #552Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: