aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio
Commit message (Collapse)AuthorAge
* gh-101317: Add `ssl_shutdown_timeout` parameter for ↵beavailable2023-02-01
| | | | | `asyncio.StreamWriter.start_tls` (#101335) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-101143: Remove references to `TimerHandle` from ↵J. Nick Koston2023-01-21
| | | | | `asyncio.base_events.BaseEventLoop._add_callback` (#101197) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (#100959)Guido van Rossum2023-01-13
|
* gh-100160: Restore and deprecate implicit creation of an event loop (GH-100410)Serhiy Storchaka2023-01-13
| | | | | | | | | | Partially revert changes made in GH-93453. asyncio.DefaultEventLoopPolicy.get_event_loop() now emits a DeprecationWarning and creates and sets a new event loop instead of raising a RuntimeError if there is no current event loop set. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* GH-86508: skip binding to local addresses of different family in ↵Kumar Aditya2023-01-04
| | | | `asyncio.open_connection` (#100615)
* GH-91166: Implement zero copy writes for `SelectorSocketTransport` in ↵Kumar Aditya2022-12-24
| | | | | asyncio (#31871) Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-100344: Add C implementation for `asyncio.current_task` (#100345)Itamar Ostricher2022-12-22
| | | Co-authored-by: pranavtbhat
* GH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output ↵Kumar Aditya2022-12-21
| | | | (#100154)
* GH-100363: Speed up `asyncio.get_running_loop` (#100364)Kumar Aditya2022-12-21
|
* gh-100348: Fix ref cycle in `asyncio._SelectorSocketTransport` with ↵Richard Kojedzinszky2022-12-20
| | | | `_read_ready_cb` (#100349)
* gh-99941: Ensure that asyncio.Protocol.data_received receives immutable ↵DarioDaF2022-12-10
| | | | bytes (#100053)
* gh-93453: No longer create an event loop in get_event_loop() (#98440)Serhiy Storchaka2022-12-06
| | | | | | | | | | | | | | | asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* GH-66285: fix forking in asyncio (#99769)Kumar Aditya2022-11-27
| | | Closes #66285
* GH-66285: Revert "fix forking in asyncio" (#99756)Kumar Aditya2022-11-24
|
* GH-79033: Fix asyncio.Server.wait_closed() (#98582)Guido van Rossum2022-11-24
| | | | | | | | | | | It was a no-op when used as recommended (after close()). I had to debug one test (test__sock_sendfile_native_failure) -- the cleanup sequence for the test fixture was botched. Hopefully that's not a portend of problems in user code -- this has never worked so people may well be doing this wrong. :-( Co-authored-by: kumar aditya
* GH-66285: fix forking in `asyncio` (#99539)Kumar Aditya2022-11-24
| | | `asyncio` now does not shares event loop and signal wakeupfd in forked processes.
* gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection ↵Dong Uk, Kang2022-11-22
| | | | | | | raises (#95739) Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame
* GH-99388: add `loop_factory` parameter to `asyncio.run` (#99462)Kumar Aditya2022-11-14
|
* GH-94597: add deprecation warnings for subclassing `AbstractChildWatcher` ↵Kumar Aditya2022-11-11
| | | | (#99386)
* gh-99277: remove older version of `get_write_buffer_limits` (#99280)Carlo2022-11-10
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTransport ↵Kumar Aditya2022-10-29
| | | | (#98844)
* gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple ↵Ken Jin2022-10-27
| | | | | times (GH-98704) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-89237: fix hang in proactor `subprocess.wait_closed()` (#98572)Kumar Aditya2022-10-24
|
* GH-98539: fix ref cycle in `_SSLProtocolTransport` after close (#98540)Kumar Aditya2022-10-22
|
* GH-98543: Fix `asyncio.TaskGroup` to not keep reference to errors after ↵Kumar Aditya2022-10-22
| | | | raising ExceptionGroup (#98544)
* GH-98327: Reduce scope of catch_warnings() in _make_subprocess_transport ↵Kumar Aditya2022-10-17
| | | | | (#98333) Alas, warnings.catch_warnings() has global scope, not thread scope, so this is still not perfect, but it reduces the time during which warnings are ignored. Better solution welcome.
* GH-94597: Deprecate child watcher getters and setters (#98215)Kumar Aditya2022-10-15
| | | | | | | This is the next step for deprecating child watchers. Until we've removed the API completely we have to use it, so this PR is mostly suppressing a lot of warnings when using the API internally. Once the child watcher API is totally removed, the two child watcher implementations we actually use and need (Pidfd and Thread) will be turned into internal helpers.
* Bpo-41246: IOCP Proactor avoid callback code duplication (#21399)Tony Solomonik2022-10-13
| | | Use the same callback function for overlapped operations recv, recv_into, recvfrom, sendto, send, and sendfile inside IocpProactor.
* bpo-46364: Use sockets for stdin of asyncio only on AIX (#30596)Christoph Hamsen2022-10-13
| | | | Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de> Co-authored-by: July Tikhonov <july.tikh@gmail.com>
* GH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and ↵Kumar Aditya2022-10-08
| | | | `MultiLoopChildWatcher` child watchers (#98089)
* GH-98023: Change default child watcher to PidfdChildWatcher on supported ↵Kumar Aditya2022-10-07
| | | | systems (#98024)
* GH-94182: Run the PidfdChildWatcher on the running loop (#94184)Thomas Grainger2022-10-07
| | | | | | | | There is no reason for this watcher to be attached to any particular loop. This should make it safe to use regardless of the lifetime of the event loop running in the main thread (relative to other loops). Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-88968: Reject socket that is already used as a transport (#98010)Guido van Rossum2022-10-07
|
* GH-90985: Revert "Deprecate passing a message into cancel()" (#97999)Guido van Rossum2022-10-06
| | | | | Reason: we were too hasty in deprecating this. We shouldn't deprecate it before we have a replacement.
* GH-88050: fix race in closing subprocess pipe in asyncio (#97951)Kumar Aditya2022-10-06
| | | Check for None when iterating over `self._pipes.values()`.
* gh-88050: Fix asyncio subprocess to kill process cleanly when process is ↵Kumar Aditya2022-10-05
| | | | blocked (#32073)
* GH-96704: Add {Task,Handle}.get_context(), use it in ↵Guido van Rossum2022-10-04
| | | | | call_exception_handler() (#96756) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (#97765)hetmankp2022-10-03
| | | Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised.
* gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() ↵Łukasz Langa2022-10-01
| | | | | | (#95253) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* GH-96827: Don't touch closed loops from executor threads (#96837)Guido van Rossum2022-09-30
| | | | | * When chaining futures, skip callback if loop closed. * When shutting down an executor, don't wake a closed loop.
* GH-82448: Add thread timeout for loop.shutdown_default_executor (#97561)Kumar Aditya2022-09-28
| | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* gh-97545: Make Semaphore run faster. (#97549)Cyker Way2022-09-26
|
* GH-85760: Fix race in calling process_exited callback too early (#97009)Kumar Aditya2022-09-22
|
* gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222)Cyker Way2022-09-22
| | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added.
* Revert "gh-87079: Warn on unintended signal wakeup fd override in `asyncio` ↵Guido van Rossum2022-09-17
| | | | | | | (#96807)" (#96898) This reverts commit 05878106989c6f5b9dd35a6c15a21bee59312827. Reason: This broke buildbots (some warnings added by that commit are turned to errors in the SSL buildbot). Repro: ./python Lib/test/ssltests.py
* gh-87079: Warn on unintended signal wakeup fd override in `asyncio` (#96807)Michel Hidalgo2022-09-17
| | | Warn on loop initialization, when setting the wakeup fd disturbs a previously set wakeup fd, and on loop closing, when upon resetting the wakeup fd, we find it has been changed by someone else.
* gh-94972: document that shield users need to keep a reference to their task ↵Hendrik Makait2022-09-10
| | | | | | (#96724) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-93973: Add all_errors to asyncio.create_connection (#93974)Pamela Fox2022-09-04
| | | | Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
* GH-74116: Allow multiple drain waiters for asyncio.StreamWriter (GH-94705)Kumar Aditya2022-08-29
|
* gh-90467: StreamReaderProtocol - add strong reference to created task (#96323)Kirill2022-08-27
|