summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
Commit message (Collapse)AuthorAgeFilesLines
...
* asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if theVictor Stinner2014-06-221-1/+1
| | | | | event loop is running. You must first stop the event loop and then wait until it stopped, before closing it.
* Tulip issue 83: document more asyncio functions in docstringsVictor Stinner2014-06-191-4/+37
|
* Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now reads allVictor Stinner2014-06-191-4/+9
| | | | | | available bytes from the "self pipe", not only a single byte. This change reduces the risk of having the pipe full and so getting the innocuous "BlockingIOError: [Errno 11] Resource temporarily unavailable" message.
* Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoopVictor Stinner2014-06-101-8/+8
| | | | | | | | | | | Add BaseEventLoop._closed attribute and use it to check if the event loop was closed or not, instead of checking different attributes in each subclass of BaseEventLoop. run_forever() and run_until_complete() methods now raise a RuntimeError('Event loop is closed') exception if the event loop was closed. BaseProactorEventLoop.close() now also cancels "accept futures".
* Fix for raising exception not derived from BaseException in ↵Andrew Svetlov2014-05-271-1/+1
| | | | _SelectorSslTransport.resume_reading
* asyncio: Fix the second half of issue #21447: race in _write_to_self().Guido van Rossum2014-05-061-4/+11
|
* asyncio: Synchronize with TulipVictor Stinner2014-03-051-0/+8
| | | | | | | | | | | | * Issue #159: Fix windows_utils.socketpair() - Use "127.0.0.1" (IPv4) or "::1" (IPv6) host instead of "localhost", because "localhost" may be a different IP address - Reject also invalid arguments: only AF_INET/AF_INET6 with SOCK_STREAM (and proto=0) are supported * Reject add/remove reader/writer when event loop is closed. * Fix ResourceWarning warnings
* asyncio/windows_events.py: use more revelant names to overlapped callbacksVictor Stinner2014-02-261-2/+1
| | | | For example: "finish_recv", not just "finish".
* asyncio: Fix spelling and typos.Yury Selivanov2014-02-191-1/+1
| | | | Thanks to Vajrasky Kok for discovering some of them.
* asyncio, Tulip issue 139: Improve error messages on "fatal errors"Victor Stinner2014-02-191-10/+12
| | | | | Mention if the error was caused by a read or a write, and be more specific on the object (ex: "pipe transport" instead of "transport").
* asyncio.transports: Make _ProactorBasePipeTransport use _FlowControlMixinYury Selivanov2014-02-181-71/+2
|
* asyncio: New error handling API. Issue #20681.Yury Selivanov2014-02-181-8/+27
|
* ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error ifVictor Stinner2014-02-131-12/+8
| | | | | the address is not resolved (hostname instead of an IP address) for AF_INET and AF_INET6 address families.
* asyncio: Tulip issue 112: Inline make_handle() into Handle constructorVictor Stinner2014-02-091-2/+2
|
* Issue #20505: Remove resolution and _granularity from selectors and asyncioVictor Stinner2014-02-071-1/+0
| | | | | * Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute
* asyncio: Refactoring: move write flow control to a subclass/mixin.Guido van Rossum2014-01-291-37/+61
|
* Merge latest Tulip into asyncioVictor Stinner2014-01-251-1/+1
| | | | | | - Make the new granularity attribute private - Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic instead
* Update asyncio from the Tulip projectVictor Stinner2014-01-251-0/+2
| | | | | | | | | | | | | | | | 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
* Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximumVictor Stinner2014-01-251-0/+1
| | | | | | 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.
* Issue #19509: Finish implementation of check_hostnameChristian Heimes2013-12-051-11/+14
| | | | The new asyncio package now supports the new feature and comes with additional tests for SSL.
* asyncio: Change write buffer use to avoid O(N**2). Make write()/sendto() ↵Guido van Rossum2013-11-271-31/+51
| | | | accept bytearray/memoryview too. Change some asserts with proper exceptions.
* Keep asyncio working with Python 3.3 too.Guido van Rossum2013-11-231-2/+9
|
* Issue #19735: Implement private function ssl._create_stdlib_context() toChristian Heimes2013-11-231-4/+2
| | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs().
* asyncio: Replace connection_refused() with error_received().Guido van Rossum2013-11-161-11/+6
|
* asyncio: Better-looking errors when ssl module cannot be imported. In part ↵Guido van Rossum2013-11-011-12/+19
| | | | by Arnaud Faure.
* asyncio: Log a warning when eof_received() returns true and using ssl.Guido van Rossum2013-11-011-1/+4
|
* asyncio: Refactor ssl transport ready loop (Nikolay Kim).Guido van Rossum2013-11-011-41/+53
|
* asyncio: Add server_hostname as create_connection() argument, with secure ↵Guido van Rossum2013-11-011-2/+2
| | | | default.
* asyncio: Fold some long lines.Guido van Rossum2013-11-011-1/+2
|
* asyncio: Pause accepting whenever accept() returns certain errors. Fixes ↵Guido van Rossum2013-11-011-6/+15
| | | | asyncio issue #78.
* asyncio: When not closing the connection after receiving EOF, still remove ↵Guido van Rossum2013-10-301-1/+6
| | | | the read handler.
* Issue #19299: fix refleak test failures in test_asyncioAntoine Pitrou2013-10-191-0/+1
|
* Verify hostname if verify_mode is CERT_OPTIONAL too.Guido van Rossum2013-10-191-1/+1
|
* Write flow control for asyncio (includes asyncio.streams overhaul).Guido van Rossum2013-10-181-14/+64
|
* Important race condition fix for Tulip.Guido van Rossum2013-10-181-33/+18
|
* Rename Transport.pause/resume to pause_reading/pause_writing. Also relax ↵Guido van Rossum2013-10-181-7/+7
| | | | timeout in test_call_later().
* Rename the logger to plain "logger".Guido van Rossum2013-10-171-7/+7
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-171-0/+769