Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Python issue #23243: On Python 3.4 and newer, emit a ResourceWarning when anHEADmaster | Victor Stinner | 2015-01-29 | 1 | -1/+5 |
| | | | | event loop or a transport is not explicitly closed | ||||
* | Python issue #23243: test_sslproto: Close explicitly transports | Victor Stinner | 2015-01-29 | 1 | -4/+3 |
| | |||||
* | Fix BaseSelectorEventLoop._accept_connection() | Victor Stinner | 2015-01-29 | 1 | -13/+24 |
| | | | | | * Close the transport on error * In debug mode, log errors using call_exception_handler() | ||||
* | Fix _UnixReadPipeTransport and _UnixWritePipeTransport | Victor Stinner | 2015-01-29 | 1 | -18/+11 |
| | | | | Only start reading when connection_made() has been called. | ||||
* | Fix _SelectorSslTransport.close() | Victor Stinner | 2015-01-29 | 1 | -1/+14 |
| | | | | | | | | Don't call protocol.connection_lost() if protocol.connection_made() was not called yet: if the SSL handshake failed or is still in progress. The close() method can be called if the creation of the connection is cancelled, by a timeout for example. | ||||
* | Fix _SelectorSocketTransport constructor | Victor Stinner | 2015-01-29 | 1 | -5/+11 |
| | | | | | Only start reading when connection_made() has been called: protocol.data_received() must not be called before protocol.connection_made(). | ||||
* | Fix SSLProtocol.eof_received() | Victor Stinner | 2015-01-28 | 1 | -11/+29 |
| | | | | Wake-up the waiter if it is not done yet. | ||||
* | test_sslproto: skip test if ssl module is missing | Victor Stinner | 2015-01-27 | 1 | -0/+5 |
| | |||||
* | Python issue #23293: Rewrite IocpProactor.connect_pipe() as a coroutine | Victor Stinner | 2015-01-26 | 1 | -0/+13 |
| | | | | | | | Use a coroutine with asyncio.sleep() instead of call_later() to ensure that the schedule call is cancelled. Add also a unit test cancelling connect_pipe(). | ||||
* | test_selectors: use asyncio.test_support if test.support is missing | Victor Stinner | 2015-01-21 | 1 | -1/+4 |
| | |||||
* | Enhance BaseProactorEventLoop._loop_self_reading() | Victor Stinner | 2015-01-16 | 1 | -2/+3 |
| | | | | | | | | * Handle correctly CancelledError: just exit * On error, log the exception and exit Don't try to close the event loop, it is probably running and so it cannot be closed. | ||||
* | tests: Remove unused function; inline another function | Victor Stinner | 2015-01-16 | 1 | -9/+1 |
| | |||||
* | Issue #22685: Fix test_pause_reading() of test_subprocess | Victor Stinner | 2015-01-15 | 1 | -2/+12 |
| | | | | | | | Override the connect_read_pipe() method of the loop to mock immediatly pause_reading() and resume_reading() methods. The test failed randomly on FreeBSD 9 buildbot and on Windows using trollius. | ||||
* | Python issue #23219: cancelling wait_for() now cancels the task | Victor Stinner | 2015-01-15 | 1 | -0/+27 |
| | |||||
* | Close transports in tests | Victor Stinner | 2015-01-15 | 4 | -3/+15 |
| | | | | | | | | | * Use test_utils.run_briefly() to execute pending calls to really close transports * sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport * pipe test: the test doesn't close explicitly the PipeHandle, so ignore the warning instead * test_popen: use the context manager ("with p:") to explicitly close pipes | ||||
* | Python issue #23243: Close explicitly transports in tests | Victor Stinner | 2015-01-15 | 3 | -277/+226 |
| | |||||
* | Python issue #23243: Close explicitly event loops in tests | Victor Stinner | 2015-01-15 | 3 | -1/+20 |
| | |||||
* | Python issue #23243: Fix _UnixWritePipeTransport.close() | Victor Stinner | 2015-01-15 | 1 | -0/+3 |
| | | | | | Do nothing if the transport is already closed. Before it was not possible to close the transport twice. | ||||
* | Fix test_events on Python older than 3.5 | Victor Stinner | 2015-01-14 | 1 | -0/+17 |
| | | | | Skip SSL tests on the ProactorEventLoop if ssl.MemoryIO is missing | ||||
* | Tests: explicitly close event loops and transports | Victor Stinner | 2015-01-14 | 5 | -0/+9 |
| | |||||
* | Python issue #23197: On SSL handshake failure, check if the waiter is cancelled | Victor Stinner | 2015-01-14 | 2 | -4/+61 |
| | | | | | | before setting its exception. Add unit tests for this case. | ||||
* | Python issue #23173: Fix SubprocessStreamProtocol.connection_made() to handle | Victor Stinner | 2015-01-14 | 1 | -0/+36 |
| | | | | | | cancelled waiter. Add unit test cancelling subprocess methods. | ||||
* | Python issue #22560: New SSL implementation based on ssl.MemoryBIO | Victor Stinner | 2015-01-14 | 2 | -11/+53 |
| | | | | | | | | | | | | | | | | | | | The new SSL implementation is based on the new ssl.MemoryBIO which is only available on Python 3.5. On Python 3.4 and older, the legacy SSL implementation (using SSL_write, SSL_read, etc.) is used. The proactor event loop only supports the new implementation. The new asyncio.sslproto module adds _SSLPipe, SSLProtocol and _SSLProtocolTransport classes. _SSLPipe allows to "wrap" or "unwrap" a socket (switch between cleartext and SSL/TLS). Patch written by Antoine Pitrou. sslproto.py is based on gruvi/ssl.py of the gruvi project written by Geert Jansen. This change adds SSL support to ProactorEventLoop on Python 3.5 and newer! It becomes also possible to implement STARTTTLS: switch a cleartext socket to SSL. | ||||
* | Tulip issue 184: Fix test_pipe() on Windows | Victor Stinner | 2015-01-13 | 1 | -1/+2 |
| | | | | Pass explicitly the event loop to StreamReaderProtocol. | ||||
* | Python issue #23209, #23225: selectors.BaseSelector.get_key() now raises a | Victor Stinner | 2015-01-13 | 1 | -4/+7 |
| | | | | | | RuntimeError if the selector is closed. And selectors.BaseSelector.close() now clears its internal reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard. | ||||
* | Tulip issue #184: FlowControlMixin constructor now get the event loop if the | Victor Stinner | 2015-01-09 | 1 | -0/+19 |
| | | | | | | | loop parameter is not set Add unit tests to ensure that constructor of StreamReader and StreamReaderProtocol classes get the event loop. | ||||
* | Replace test_selectors.py with the file of Python 3.5 adapted for asyncio and | Victor Stinner | 2015-01-09 | 1 | -161/+395 |
| | | | | | | | | Python 3.3 * Use time.time if time.monotonic is not available * Get socketpair from asyncio.test_utils * Get selectors from asyncio.selectors | ||||
* | Truncate to 80 columns | Victor Stinner | 2015-01-09 | 5 | -18/+37 |
| | |||||
* | Python issue #23140: Simplify the unit test | Victor Stinner | 2015-01-06 | 1 | -8/+6 |
| | |||||
* | Issue #23140: Fix cancellation of Process.wait(). Check the state of the waiter | Victor Stinner | 2015-01-06 | 1 | -0/+28 |
| | | | | future before setting its result. | ||||
* | CPython doesn't have asyncio.test_support | Victor Stinner | 2014-12-26 | 6 | -24/+46 |
| | |||||
* | Python issue #22926: In debug mode, call_soon(), call_at() and call_later() | Victor Stinner | 2014-12-26 | 3 | -39/+66 |
| | | | | | | | | | | methods of BaseEventLoop now use the identifier of the current thread to ensure that they are called from the thread running the event loop. Before, the get_event_loop() method was used to check the thread, and no exception was raised when the thread had no event loop. Now the methods always raise an exception in debug mode when called from the wrong thread. It should help to notice misusage of the API. | ||||
* | Fix pyflakes warnings: remove unused imports and variables | Victor Stinner | 2014-12-19 | 3 | -7/+2 |
| | |||||
* | asyncio.test_support now uses test.support and test.script_helper if available | Victor Stinner | 2014-12-19 | 6 | -48/+25 |
| | |||||
* | IocpProactor.wait_for_handle() test now also checks the result of the future | Victor Stinner | 2014-12-19 | 1 | -2/+6 |
| | |||||
* | Copy a subset of test.support from CPython 3.5 to no more depend on the test | Victor Stinner | 2014-12-18 | 6 | -16/+37 |
| | | | | module to run the asyncio test suite. The test module is rarely installed. | ||||
* | Python issue #23074: get_event_loop() now raises an exception if the thread has | Victor Stinner | 2014-12-18 | 1 | -2/+2 |
| | | | | no event loop even if assertions are disabled. | ||||
* | Fix subprocess for close_fds=False on Python 3.3 | Victor Stinner | 2014-12-11 | 1 | -0/+21 |
| | | | | Mark the write end of the stdin pipe as non-inheritable. | ||||
* | Tulip issue #202: Add unit test of pause/resume writing for proactor socket | Victor Stinner | 2014-12-11 | 1 | -0/+82 |
| | | | | transport | ||||
* | Python issue #22429: Fix EventLoop.run_until_complete(), don't stop the event | Victor Stinner | 2014-12-05 | 1 | -0/+25 |
| | | | | loop if a BaseException is raised, because the event loop is already stopped. | ||||
* | Python issue #22685: Fix test_pause_reading() of test_subprocess | Victor Stinner | 2014-12-04 | 1 | -7/+12 |
| | | | | | * mock also resume_reading() * ensure that resume_reading() is called | ||||
* | Removed duplicated words in in comments and docs. Patch written by Serhiy | Victor Stinner | 2014-12-04 | 1 | -1/+1 |
| | | | | Storchaka. | ||||
* | Python issue #22922: More EventLoop methods fail if the loop is closed. Initial | Victor Stinner | 2014-12-04 | 1 | -1/+34 |
| | | | | | | | patch written by Torsten Landschoff. create_task(), call_at(), call_soon(), call_soon_threadsafe() and run_in_executor() now raise an error if the event loop is closed. | ||||
* | Python issue #22921: Don't require OpenSSL SNI to pass hostname to ssl | Benjamin Peterson | 2014-11-25 | 2 | -9/+1 |
| | | | | functions. Patch by Donald Stufft. | ||||
* | Python issue #22685: Set the transport of stdout and stderr StreamReader | Victor Stinner | 2014-11-25 | 1 | -0/+32 |
| | | | | | objects in the SubprocessStreamProtocol. It allows to pause the transport to not buffer too much stdout or stderr data. | ||||
* | Coroutine objects are now rejected with a TypeError by the following functions: | Victor Stinner | 2014-11-20 | 2 | -15/+25 |
| | | | | | | | | | | | | * add_signal_handler() * call_at() * call_later() * call_soon() * call_soon_threadsafe() * run_in_executor() Fix also the error message of add_signal_handler() (fix the name of the function). | ||||
* | test_events: Ignore the "SSL handshake failed" log in debug mode | Victor Stinner | 2014-11-20 | 1 | -1/+3 |
| | |||||
* | Fix formatting of the "Future exception was never retrieved" | Victor Stinner | 2014-11-20 | 1 | -23/+42 |
| | | | | Add an unit test to check for non regression | ||||
* | Fix test_events.py on Python 3.3: ssl.Purpose was introduced in Python 3.4 | Victor Stinner | 2014-11-20 | 1 | -16/+18 |
| | |||||
* | CPython issue #22784: fix test_asyncio when the ssl module isn't available. ↵ | Guido van Rossum | 2014-11-14 | 1 | -8/+9 |
| | | | | (Antoine Pitrou) |