summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)Victor Stinner2017-06-301-0/+6
| | | | | | | | | | | | | | | | | * bpo-30280: asyncio now cleans up threads asyncio base TestCase now uses threading_setup() and threading_cleanup() of test.support to cleanup threads. * asyncio: Fix TestBaseSelectorEventLoop cleanup bpo-30280: TestBaseSelectorEventLoop of test.test_asyncio.test_selector_events now correctly closes the event loop: cleanup its executor to not leak threads. Don't override the close() method of the event loop, only override the_close_self_pipe() method. (cherry picked from commit b9030674624c181d6e9047cdb14ad65bb6c84c66)
* [3.5] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2371)Mariatta2017-06-241-1/+1
| | | | defiend -> defined (cherry picked from commit cab469245d7635447c5e04fa6ed860b067dfc26b)
* Revert "[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling ↵Yury Selivanov2017-06-111-23/+1
| | | | | close with certain servers (GH-409) (#2063)" (#2113) This reverts commit 1395c58ef7b98f087d1d5d50962fe7a8c032f34d.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. ↵Yury Selivanov2017-06-112-0/+2
| | | | (#2110)
* [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with ↵Yury Selivanov2017-06-101-1/+23
| | | | | | | | | | | | | | | certain servers (GH-409) (#2063) * bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409) (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390) * [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) * asyncio SSL contexts leak sockets after calling close with certain servers * cleanup _shutdown_timeout_handle on _fatal_error. (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390)
* [3.5] Fix TypeError is asyncio/proactor_events (GH-993) (#2060)Yury Selivanov2017-06-101-2/+3
| | | (cherry picked from commit 34792d25ab7329241ea24595286d65d54c266274)
* Break circular references when closing SSLTransport objects (#981) (#2048)Yury Selivanov2017-06-091-4/+6
|
* Closing transport during handshake process leaks socket (#480) (#2045)Yury Selivanov2017-06-091-2/+5
|
* Fix waiter cancellation in asyncio.Lock (#1031) (#2038)Yury Selivanov2017-06-091-5/+12
| | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585
* [3.5] call remove_done_callback in finally section (GH-1688) (#1758)Łukasz Langa2017-05-231-1/+2
| | | (cherry picked from commit 21b3e04c13212b29e8c35ffc36eed8603fde08f4)
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1547)INADA Naoki2017-05-121-1/+6
| | | | | | | | | | | | | | | | | | * bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097) when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError (cherry picked from commit 991adca012f5e106c2d4040ce619c696ba6f9c46) * fix test
* bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future ↵Mariatta2017-04-221-1/+2
| | | | | (GH-1170) (#1246) (cherry picked from commit ae5b3260dd459845aad8a30491b76d471577785d)
* bpo-29742: asyncio get_extra_info() throws exception (#525) (#646)Yury Selivanov2017-03-121-1/+3
|
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-2/+15
|
* asyncio: Optimize _get_running_loop() to call getpid() only when there's a loopYury Selivanov2017-03-031-2/+3
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#411)Yury Selivanov2017-03-032-2/+11
|
* Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation WarningMariatta Wijaya2017-02-071-1/+2
|
* Issue #28990: Fix SSL hanging if connection is closed before handshake ↵Yury Selivanov2016-12-161-0/+1
| | | | completed.
* Issue #28652: Partially rollback previous changesYury Selivanov2016-11-211-12/+10
| | | | Allow AF_UNIX in create_server & create_connection
* Issue #28704: Fix create_unix_server to support Path-like objectsYury Selivanov2016-11-151-0/+8
|
* Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.Yury Selivanov2016-11-151-2/+14
|
* Issue #28652: Make loop methods reject socket kinds they do not support.Yury Selivanov2016-11-092-13/+47
|
* asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__Yury Selivanov2016-11-091-2/+6
| | | | | | Some built-in coroutine-like objects might not have __name__ or __qualname__. A good example of such are 'asend', 'aclose' and 'athrow' coroutine methods of asynchronous generators.
* Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop()Yury Selivanov2016-11-081-0/+1
|
* Issue #28634: Fix asyncio.isfuture() to support mocksYury Selivanov2016-11-071-2/+3
|
* Issue #28613: Fix get_event_loop() to return the current loopYury Selivanov2016-11-043-2/+47
| | | | when called from coroutines or callbacks.
* asyncio: Sync with upstreamYury Selivanov2016-11-031-0/+3
|
* Issue #28600: Optimize loop.call_soon().Yury Selivanov2016-11-032-22/+19
| | | | | Run expensive type checks only in debug mode. In addition, stop supporting passing handles to loop.run_in_executor.
* Issue #26796: Don't configure the number of workers for default threadpool ↵Yury Selivanov2016-10-211-4/+1
| | | | | | executor. Initial patch by Hans Lawrenz.
* Issue #26923: Fix asyncio.Gather to refuse being cancelled once all children ↵Yury Selivanov2016-10-211-2/+4
| | | | | | are done. Patch by Johannes Ebke.
* Issue #27972: Prohibit Tasks to await on themselves.Yury Selivanov2016-10-091-7/+14
|
* Issue #28399: Remove UNIX socket from FS before binding.Yury Selivanov2016-10-091-0/+11
| | | | Patch by Коренберг Марк.
* asyncio: Only allow Unix Stream sockets for loop.create_unix_server/connectionYury Selivanov2016-10-071-2/+9
|
* asyncio: Add "call_connection_made" arg to SSLProtocol.__init__Yury Selivanov2016-10-051-2/+5
| | | | | | | | | Issue #23749: With this change it's possible to implement starttls as a separate package on PyPI, or even by copying/pasting a small snipped of code in your project. It's expected that we'll figure out the API design for starttls during 3.6, so that we can add it in 3.7.
* Issue #28372: Fix asyncio to support formatting of non-python coroutinesYury Selivanov2016-10-051-0/+19
|
* Issue #28371: Deprecate passing asyncio.Handles to run_in_executor.Yury Selivanov2016-10-051-0/+3
|
* Issue #28370: Speedup asyncio.StreamReader.readexactlyYury Selivanov2016-10-051-19/+17
| | | | Patch by Коренберг Марк.
* Issue #28369: Raise an error when transport's FD is used with add_readerYury Selivanov2016-10-053-65/+130
|
* Issue #28368: Refuse monitoring processes if the child watcher has no loop ↵Yury Selivanov2016-10-051-5/+18
| | | | | | attached. Patch by Vincent Michel.
* Misc asyncio improvements from upstreamGuido van Rossum2016-09-305-22/+16
|
* Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.Yury Selivanov2016-09-151-17/+10
|
* Issue #26909: Fix slow pipes IO in asyncio.Yury Selivanov2016-09-151-15/+12
| | | | Patch by INADA Naoki.
* Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.Yury Selivanov2016-09-152-14/+15
| | | | Patch by iceboy.
* Issue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio)Yury Selivanov2016-09-151-12/+13
| | | | Patch by Seth Michael Larson.
* Issue #27906: Fix socket accept exhaustion during high TCP traffic.Yury Selivanov2016-09-153-35/+42
| | | | Patch by Kevin Conway.
* Another asyncio sync.Yury Selivanov2016-09-152-5/+11
|
* asyncio: Sync with the upstreamYury Selivanov2016-09-152-0/+64
|
* Issue #27456: asyncio: Set TCP_NODELAY by default.Yury Selivanov2016-09-121-0/+16
|
* asyncio: Add set_protocol / get_protocol methods to TransportsYury Selivanov2016-09-126-0/+44
|
* Merge asyncio upstream.Guido van Rossum2016-09-094-13/+25
|