summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/streams.py
Commit message (Collapse)AuthorAgeFilesLines
* asyncio, tulip issue 193: Convert StreamWriter.drain() to a classic coroutineVictor Stinner2014-07-221-19/+18
| | | | | Replace also _make_drain_waiter() function with a classic _drain_helper() coroutine.
* asyncio: sync with TulipVictor Stinner2014-07-141-0/+12
| | | | | | | | | | | | | | | | | | | | * Tulip issue #184: Log subprocess events in debug mode - Log stdin, stdout and stderr transports and protocols - Log process identifier (pid) - Log connection of pipes - Log process exit - Log Process.communicate() tasks: feed stdin, read stdout and stderr - Add __repr__() method to many classes related to subprocesses * Add BaseSubprocessTransport._pid attribute. Store the pid so it is still accessible after the process exited. It's more convinient for debug. * create_connection(): add the socket in the "connected to" debug log * Clean up some docstrings and comments. Remove unused unimplemented _read_from_self().
* asyncio: sync with TulipVictor Stinner2014-07-111-1/+0
| | | | | | | | | | * Tulip issue #182: Improve logs of BaseEventLoop._run_once() - Don't log non-blocking poll - Only log polling with a timeout if it gets events or if it timed out after more than 1 second. * Fix some pyflakes warnings: remove unused imports
* asyncio: sync with TulipVictor Stinner2014-07-081-1/+1
| | | | | | | | | | | - Tulip issue 185: Add a create_task() method to event loops. The create_task() method can be overriden in custom event loop to implement their own task class. For example, greenio and Pulsar projects use their own task class. The create_task() method is now preferred over creating directly task using the Task class. - tests: fix a warning - fix typo in the name of a test function - Update AbstractEventLoop: add new event loop methods; update also the unit test
* asyncio: sync with Tulip, add a new asyncio.coroutines moduleVictor Stinner2014-06-281-8/+10
|
* asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if ↵Guido van Rossum2014-05-121-6/+11
| | | | data exceeds buffer limit.
* asyncio: Make tests pass on Windows.Guido van Rossum2014-02-181-1/+3
|
* asyncio: Add support for UNIX Domain Sockets.Yury Selivanov2014-02-181-1/+38
|
* asyncio.streams.StreamReader: Add 'at_eof()' methodYury Selivanov2014-02-061-0/+4
|
* asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_dataYury Selivanov2014-02-051-49/+24
|
* asyncio: Fix misc whitespace issues.Guido van Rossum2014-01-311-0/+1
|
* asyncio: Refactor drain logic in streams.py to be reusable.Guido van Rossum2014-01-291-36/+61
|
* Update asyncio from the Tulip projectVictor Stinner2014-01-251-6/+16
| | | | | | | | | | | | | | | | 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
* asyncio (Tulip issue 110): StreamReader.read() and StreamReader.readline() nowVictor Stinner2014-01-231-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 StreamWriterVictor Stinner2014-01-231-1/+1
|
* asyncio: Tiny cleanup in streams.py.Guido van Rossum2014-01-101-2/+2
|
* Fix typo in asyncio/streams.py.Guido van Rossum2014-01-081-1/+1
|
* asyncio: Fix deadlock in readexactly(). Fixes issue #20154.Guido van Rossum2014-01-071-10/+19
|
* asyncio: Add StreamReaderProtocol to __all__.Guido van Rossum2013-11-251-1/+1
|
* asyncio: Add streams.start_server(), by Gustavo Carneiro.Guido van Rossum2013-11-191-2/+51
|
* Write flow control for asyncio (includes asyncio.streams overhaul).Guido van Rossum2013-10-181-58/+150
|
* Rename Transport.pause/resume to pause_reading/pause_writing. Also relax ↵Guido van Rossum2013-10-181-2/+2
| | | | timeout in test_call_later().
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+257