Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #20505: Add debug info to analyze sporaric failures of | Victor Stinner | 2014-02-10 | 1 | -0/+6 |
| | | | | test_timeout_rounding() on Windows XP buildbots. | ||||
* | asyncio: Tulip issue 112: Inline make_handle() into Handle constructor | Victor Stinner | 2014-02-09 | 5 | -12/+7 |
| | |||||
* | asyncio: Remove more relics of resolution/granularity. | Guido van Rossum | 2014-02-09 | 2 | -6/+0 |
| | |||||
* | asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent | Victor Stinner | 2014-02-09 | 1 | -4/+0 |
| | | | | Process and Popen objects | ||||
* | Issue #20505: Remove resolution and _granularity from selectors and asyncio | Victor Stinner | 2014-02-07 | 3 | -14/+1 |
| | | | | | * Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute | ||||
* | Issue #20505: add debug info | Victor Stinner | 2014-02-07 | 1 | -0/+10 |
| | |||||
* | asyncio.tasks: Fix as_completed, gather & wait to work with duplicate coroutines | Yury Selivanov | 2014-02-07 | 1 | -3/+4 |
| | |||||
* | asyncio.tasks.gather: Fix docstring | Yury Selivanov | 2014-02-06 | 1 | -1/+1 |
| | |||||
* | asyncio.streams.StreamReader: Add 'at_eof()' method | Yury Selivanov | 2014-02-06 | 1 | -0/+4 |
| | |||||
* | asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_data | Yury Selivanov | 2014-02-05 | 1 | -49/+24 |
| | |||||
* | asyncio: Fix _ProactorWritePipeTransport._pipe_closed() | Victor Stinner | 2014-02-04 | 1 | -1/+4 |
| | | | | | Do nothing if the pipe is already closed. _loop_writing() may call _force_close() when it gets ConnectionResetError. | ||||
* | asyncio.subprocess: Replace Process.get_subprocess() method with a | Victor Stinner | 2014-02-03 | 1 | -1/+2 |
| | | | | Process.subprocess read-only property | ||||
* | Issue #20400: Merge Tulip into Python: add the new asyncio.subprocess module | Victor Stinner | 2014-02-01 | 5 | -33/+230 |
| | | | | | | | | | | | | | | | | | | | | * Add a new asyncio.subprocess module * Add new create_subprocess_exec() and create_subprocess_shell() functions * The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers for stdout and stderr and a stream writer for stdin. * The new asyncio.subprocess.Process class offers an API close to the subprocess.Popen class: - pid, returncode, stdin, stdout and stderr attributes - communicate(), wait(), send_signal(), terminate() and kill() methods * Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess and unix_events, to not be confused with the symbols with the same name of subprocess and asyncio.subprocess modules * _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size of the pending write * _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if the write buffer size is greater than the high water mark (64 KB by default) | ||||
* | Issue #20455: Add a resolution attribute to IocpProactor (1 ms) | Victor Stinner | 2014-01-31 | 2 | -0/+2 |
| | |||||
* | Issue #20455: asyncio: use the same code to round a timeout than the selectors | Victor Stinner | 2014-01-31 | 1 | -4/+9 |
| | | | | | | module Sort also imports | ||||
* | Issue #20455: asyncio: write a new write pipe transport class for proactor (on | Victor Stinner | 2014-01-31 | 1 | -12/+26 |
| | | | | | | | Windows) instead of using the "duplex" pipe transport. The new class uses a simpler overlapped read to be notified when the pipe is closed. So the protocol doesn't need to implement eof_received(): connection_lost() is called instead. _UnixWritePipeTransport has the same approach. | ||||
* | asyncio: Fix _UnixWritePipeTransport, raise BrokenPipeError when the pipe is | Victor Stinner | 2014-01-31 | 1 | -1/+4 |
| | | | | closed, but only if there was pending write | ||||
* | Issue #20452: Remove debug code, no more needed | Victor Stinner | 2014-01-31 | 1 | -9/+1 |
| | |||||
* | asyncio: Fix error message in BaseEventLoop.subprocess_shell(). Patch written | Victor Stinner | 2014-01-31 | 1 | -1/+1 |
| | | | | by Vajrasky Kok. | ||||
* | Issue #20452: select and selectors round (again) timeout away from zero for | Victor Stinner | 2014-01-31 | 1 | -10/+5 |
| | | | | | | poll and epoll Improve also debug info to analyze the issue | ||||
* | Issue #20452: Oops, fix debug code :-/ | Victor Stinner | 2014-01-31 | 1 | -5/+10 |
| | | | | Add also event more debug info | ||||
* | Issue #20452: add more info in case of test_asyncio failure to try to debug the | Victor Stinner | 2014-01-31 | 1 | -1/+9 |
| | | | | failure on buildbot "x86 Ubuntu Shared 3.x" | ||||
* | asyncio: Fix misc whitespace issues. | Guido van Rossum | 2014-01-31 | 1 | -0/+1 |
| | |||||
* | asyncio: Fix granularity of test_utils.TestLoop. | Victor Stinner | 2014-01-31 | 1 | -0/+1 |
| | |||||
* | asyncio: Future.set_exception(exc) should instantiate exc if it is a class. | Victor Stinner | 2014-01-31 | 1 | -0/+2 |
| | |||||
* | asyncio: subprocess_shell() and subprocess_exec() now raise ValueError ↵ | Victor Stinner | 2014-01-29 | 1 | -5/+14 |
| | | | | | | instead of assert. Moreover, bufsize different than 0 is now considered as an error. | ||||
* | asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor. | Victor Stinner | 2014-01-29 | 2 | -2/+2 |
| | |||||
* | asyncio: wait_for() now accepts None as timeout (Victor Stinner). | Guido van Rossum | 2014-01-29 | 1 | -0/+3 |
| | |||||
* | asyncio: Pass through pause/resume from subprocess pipe proto to subprocess ↵ | Guido van Rossum | 2014-01-29 | 1 | -2/+5 |
| | | | | proto. Also kill dummy eof_received(). | ||||
* | asyncio: Refactor drain logic in streams.py to be reusable. | Guido van Rossum | 2014-01-29 | 1 | -36/+61 |
| | |||||
* | asyncio: Get rid of _try_connected(). | Victor Stinner | 2014-01-29 | 1 | -18/+14 |
| | |||||
* | asyncio: Add write flow control to unix pipes. | Guido van Rossum | 2014-01-29 | 1 | -3/+11 |
| | |||||
* | asyncio: Refactoring: move write flow control to a subclass/mixin. | Guido van Rossum | 2014-01-29 | 1 | -37/+61 |
| | |||||
* | asyncio: _fatal_error() of _UnixWritePipeTransport and ↵ | Victor Stinner | 2014-01-29 | 2 | -2/+4 |
| | | | | | | _ProactorBasePipeTransport shouldn't log BrokenPipeError nor ConnectionResetError. (Same behaviour as _SelectorTransport._fatal_error().) | ||||
* | asyncio: remove temporary aliases | Victor Stinner | 2014-01-27 | 1 | -6/+0 |
| | |||||
* | Merge latest Tulip into asyncio | Andrew Svetlov | 2014-01-26 | 3 | -7/+0 |
| | |||||
* | asyncio: Rename {Empty,Full} to {QueueEmpty,QueueFull} and no longer get ↵ | Guido van Rossum | 2014-01-26 | 1 | -9/+19 |
| | | | | them from queue.py. | ||||
* | asyncio: Locks refactor: use a separate context manager; remove ↵ | Guido van Rossum | 2014-01-26 | 1 | -22/+60 |
| | | | | Semaphore._locked. | ||||
* | asyncio: Fix race in FastChildWatcher (by its original author, Anthony Baire). | Guido van Rossum | 2014-01-26 | 1 | -20/+16 |
| | |||||
* | Merge latest Tulip into asyncio | Victor Stinner | 2014-01-25 | 2 | -8/+3 |
| | | | | | | - Make the new granularity attribute private - Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic instead | ||||
* | asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor | Victor Stinner | 2014-01-25 | 1 | -7/+1 |
| | | | | | | BaseProactorEventLoop Import them from submodules if you really need them. | ||||
* | Update asyncio from the Tulip project | Victor Stinner | 2014-01-25 | 5 | -14/+38 |
| | | | | | | | | | | | | | | | | Major changes: - StreamReader.readexactly() now raises an IncompleteReadError if the end of stream is reached before we received enough bytes, instead of returning less bytes than requested. - Unit tests use the main asyncio module instead of submodules like events - _UnixWritePipeTransport now also supports character devices, as _UnixReadPipeTransport. Patch written by Jonathan Slenders. - Export more symbols: BaseEventLoop, BaseProactorEventLoop, BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full | ||||
* | Fix asyncio tests: define resolution | Victor Stinner | 2014-01-25 | 1 | -0/+4 |
| | |||||
* | Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum | Victor Stinner | 2014-01-25 | 2 | -0/+7 |
| | | | | | | between the resolution of the BaseEventLoop.time() method and the resolution of the selector. The granuarility is used in the scheduler to round time and deadline. | ||||
* | asyncio: wait_for() now cancels the future on timeout. Patch written by Gustavo | Victor Stinner | 2014-01-23 | 1 | -2/+4 |
| | | | | Carneiro. | ||||
* | asyncio (Tulip issue 110): StreamReader.read() and StreamReader.readline() now | Victor Stinner | 2014-01-23 | 1 | -7/+14 |
| | | | | | raise a RuntimeError, instead of using an assertion, if another coroutine is already waiting for incoming data | ||||
* | asyncio: Fix open_connection() documentation, writer is a StreamWriter | Victor Stinner | 2014-01-23 | 1 | -1/+1 |
| | |||||
* | asyncio: Cleanup logging in BaseEventLoop._run_once() | Victor Stinner | 2014-01-22 | 1 | -2/+5 |
| | | | | | | logger.log() is now responsible to format the timeout. It might be faster if the log is disabled for DEBUG level, but it's also more readable and fix an issue with Python 2.6 in the Trollius project. | ||||
* | Close #20275: Optimize BaseEventLoop._run_once() | Victor Stinner | 2014-01-20 | 1 | -8/+11 |
| | | | | | | Logger.log() is "slow", logger.isEnabledFor() is faster and the logger is disabled in most cases. A microbenchmark executing 100,000 dummy tasks is 22% faster with this change. | ||||
* | asyncio: Reincarnate CoroWrapper's docstring as a comment. | Guido van Rossum | 2014-01-16 | 1 | -0/+2 |
| |