summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-1/+1
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31350: Optimize get_event_loop and _get_running_loop (#3347)jimmylai2017-09-061-6/+4
| | | | | | | | | | | | | | | | * call remove_done_callback in finally section * Optimize get_event_loop and _get_running_loop * rename _loop_pid as loop_pid and add blurb news * rename _loop_pid as loop_pid and add blurb news * add back _RunningLoop * Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst * Update 2017-09-05-10-30-48.bpo-31350.dXJ-7N.rst
* bpo-31250, test_asyncio: fix dangling threads (#3252)Victor Stinner2017-09-011-1/+8
| | | | | | | * Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close().
* bpo-30280: Cleanup threads in ayncio tests (#2501)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.
* Fix a typo in a comment in coroutines.py (GH-2267)Johan de Jager2017-06-241-1/+1
| | | defiend -> defined
* Revert "bpo-29406: asyncio SSL contexts leak sockets after calling close ↵Yury Selivanov2017-06-111-24/+1
| | | | | with certain servers (#409)" (#2111) This reverts commit a608d2d5a7f1aabe9bcbfc220135c5e126189390.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)Yury Selivanov2017-06-112-0/+2
|
* bpo-29406: asyncio SSL contexts leak sockets after calling close with ↵Nikolay Kim2017-06-101-1/+24
| | | | | | | | certain servers (#409) * asyncio SSL contexts leak sockets after calling close with certain servers * cleanup _shutdown_timeout_handle on _fatal_error
* Fix TypeError is asyncio/proactor_events (#993)Jim Fasarakis-Hilliard2017-06-101-2/+3
|
* Break circular references when closing SSLTransport objects (#981)Michaël Sghaïer2017-06-091-4/+6
|
* Closing transport during handshake process leaks socket (#480)Nikolay Kim2017-06-091-2/+5
|
* Fix waiter cancellation in asyncio.Lock (#1031)Mathieu Sornay2017-06-091-5/+12
| | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585
* call remove_done_callback in finally section (#1688)jimmylai2017-05-231-1/+2
|
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097)INADA Naoki2017-05-111-1/+6
| | | | | | | | | | | | 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
* bpo-29617: Remove Python 3.3 support from asyncio (GH-232)INADA Naoki2017-04-2512-223/+65
|
* bpo-30144: Import collections ABC from collections.abc rather than ↵Serhiy Storchaka2017-04-241-1/+2
| | | | collections. (#1263)
* bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future ↵Charles Renwick2017-04-211-1/+2
| | | | (GH-1170)
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-051-1/+1
| | | This hides unwanted implementation details from tracebacks.
* Fix small exception typos in Lib (#818)Jim Fasarakis-Hilliard2017-03-261-1/+1
|
* bpo-29742: asyncio get_extra_info() throws exception (#525)Nikolay Kim2017-03-121-1/+3
|
* asyncio: Optimize _get_running_loop() to call getpid() only when there's a loopYury Selivanov2017-03-031-2/+3
|
* asyncio: Fix trailing whitespace/code styleYury Selivanov2017-03-031-2/+2
|
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-2/+15
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#404)Yury Selivanov2017-03-032-2/+11
|
* Issue #29314: Merge with 3.6Mariatta Wijaya2017-02-071-1/+2
|\
| * Issue #29314: Merge with 3.5Mariatta Wijaya2017-02-071-1/+2
| |\
| | * Issue #29314: Set the stacklevel to two in asyncio.async() Deprecation WarningMariatta Wijaya2017-02-071-1/+2
| | |
* | | Remove unused imports.Serhiy Storchaka2016-12-161-1/+0
|/ /
* | Merge 3.5 (issue #28990)Yury Selivanov2016-12-161-0/+1
|\ \ | |/
| * Issue #28990: Fix SSL hanging if connection is closed before handshake ↵Yury Selivanov2016-12-161-0/+1
| | | | | | | | completed.
* | Merge 3.5 (issue #28652)Yury Selivanov2016-11-211-12/+10
|\ \ | |/
| * Issue #28652: Partially rollback previous changesYury Selivanov2016-11-211-12/+10
| | | | | | | | Allow AF_UNIX in create_server & create_connection
* | Merge 3.5 (issue #28704)Yury Selivanov2016-11-151-0/+8
|\ \ | |/
| * Issue #28704: Fix create_unix_server to support Path-like objectsYury Selivanov2016-11-151-0/+8
| |
* | Merge 3.5 (issue #28703)Yury Selivanov2016-11-151-2/+14
|\ \ | |/
| * Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.Yury Selivanov2016-11-151-2/+14
| |
* | Merge 3.5 (issue #28652)Yury Selivanov2016-11-092-13/+47
|\ \ | |/
| * Issue #28652: Make loop methods reject socket kinds they do not support.Yury Selivanov2016-11-092-13/+47
| |
* | Merge 3.5 (asyncio)Yury Selivanov2016-11-091-2/+6
|\ \ | |/
| * 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.
* | Merge 3.5 (issue #28613)Yury Selivanov2016-11-081-0/+1
|\ \ | |/
| * Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop()Yury Selivanov2016-11-081-0/+1
| |
* | Merge 3.5 (issue #28634)Yury Selivanov2016-11-071-1/+2
|\ \ | |/
| * Issue #28634: Fix asyncio.isfuture() to support mocksYury Selivanov2016-11-071-2/+3
| |
* | Merge 3.5 (issue #28613)Yury Selivanov2016-11-043-2/+47
|\ \ | |/
| * 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
| |
* | Merge 3.5 (issue #28600)Yury Selivanov2016-11-032-22/+19
|\ \ | |/
| * 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 #28544: Implement asyncio.Task in C.Yury Selivanov2016-10-286-138/+183
| | | | | | | | | | | | | | | | This implementation provides additional 10-20% speed boost for asyncio programs. The patch also fixes _asynciomodule.c to use Arguments Clinic, and makes '_schedule_callbacks' an overridable method (as it was in 3.5).