summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Tulip issue #219: Fix comments in simple_tcp_server.py exampleVictor Stinner2015-01-231-2/+2
| | | | | Fixing some comments. The server listens on 12345 and client connects on 12345, but the comments state 1234. Patch written by bryan.neff.
* Examples: close the event loop at exitVictor Stinner2014-07-0210-4/+23
|
* Fix issue 168: StreamReader.read(-1) from pipe may hang if data exceeds ↵Guido van Rossum2014-05-121-1/+1
| | | | buffer limit.
* Simple echo client/server example (for Twitter thread).Guido van Rossum2014-05-042-0/+36
|
* Another tiny crawl.py cleanup.Guido van Rossum2014-03-031-0/+2
|
* Use public interfaces to get the fileno(). Fix a typo.Guido van Rossum2014-03-031-4/+4
|
* tcp_echo.py: add --iocp command line option to use IOCP event loop on WindowsVictor Stinner2014-02-261-2/+13
| | | | Don't setup a signal handler for SIGINT on Windows.
* Fix pyflakes warnings: remove unused variables and importsVictor Stinner2014-02-267-13/+4
|
* Remove debug codeVictor Stinner2014-02-201-1/+0
|
* pep8-ify the code.Yury Selivanov2014-02-181-1/+2
|
* Fuzz tester for as_completed(), by Glenn Langford. (See issue #127.)Guido van Rossum2014-02-121-0/+69
|
* Merge (manually) the subprocess_stream into defaultVictor Stinner2014-02-015-1/+204
| | | | | | | | | | | | | | | | | | | | | | * 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) * Add new subprocess examples: shell.py, subprocess_shell.py, * subprocess_attach_read_pipe.py and subprocess_attach_write_pipe.py
* Fix ResourceWarning in tcp and udp echo examplesVictor Stinner2014-01-282-5/+9
|
* examples: close the event loopVictor Stinner2014-01-285-10/+25
|
* Close loop in crawl.py example (mostly for IOCP).Guido van Rossum2014-01-281-0/+1
|
* The standard readexactly() now raises on a short read, so kill the custom ↵Guido van Rossum2014-01-261-22/+2
| | | | wrapper.
* Prune stale collections before closing oldest ones. Improve cloose logging.Guido van Rossum2014-01-101-6/+36
|
* Refactor: introduce Connection class.Guido van Rossum2014-01-101-78/+99
|
* Refactor Logger: No more VPrinter base class.Guido van Rossum2014-01-091-104/+85
|
* Better reporting.Guido van Rossum2014-01-091-12/+61
|
* Change max tasks/pool default to 100. Add TODOs. PEP8 tweaks.Guido van Rossum2014-01-091-5/+10
|
* Connection pool limits; strict/lenient host matching.Guido van Rossum2014-01-091-22/+120
|
* Fix serious leak in connection pool (still a minor one left).Guido van Rossum2014-01-081-17/+47
|
* Ignore now-closed connections in pool.Guido van Rossum2014-01-081-0/+4
|
* A new crawler example.Guido van Rossum2014-01-081-0/+668
|
* Fix bug in chunked reader (must read final CRLF).Guido van Rossum2014-01-081-7/+7
|
* Oops. Added a file by accident.Guido van Rossum2013-12-201-89/+0
|
* A new, larger example: a cache server with a shareable, reconnecting client.Guido van Rossum2013-12-203-0/+547
|
* SSL hostname checking changes from CPython repo by Christian Heimes.Guido van Rossum2013-12-061-2/+2
|
* Use try/finally to close loop in examples. Add --iocp to fetch3.py.Guido van Rossum2013-12-038-14/+39
|
* Fold long lines.Guido van Rossum2013-11-271-2/+4
|
* Variant of simple_tcp_server.py to measure timing. By Gustavo Carneiro.Guido van Rossum2013-11-271-0/+163
|
* Two new examples: print 'Hello World' every two seconds, using a callback ↵Guido van Rossum2013-11-222-0/+29
| | | | | | and using a coroutine. Thanks to Terry Reedy who suggested this exercise.
* Add streams.start_server(), by Gustavo Carneiro.Guido van Rossum2013-11-191-0/+151
|
* Generalized error handling callback for DatastoreProtocol.Guido van Rossum2013-11-151-4/+4
|
* Add limited TLS capability to source/sink examples.Guido van Rossum2013-11-013-6/+38
|
* Add pool-closing to fetch3 example.Guido van Rossum2013-11-011-12/+19
|
* Fold some long lines.Guido van Rossum2013-10-302-2/+3
|
* Bulk mergeGuido van Rossum2013-10-1810-43/+43
|\
| * MergeGuido van Rossum2013-10-181-3/+5
| |\
| * \ MergeGuido van Rossum2013-10-172-18/+65
| |\ \
| * | | Update examples to use asyncio, not tulip.Guido van Rossum2013-10-1610-43/+43
| | | |
* | | | Write flow control. Also a somewhat major streams overhaul.Guido van Rossum2013-10-181-0/+88
| | | |
* | | | Fix example to use create_server() instead of start_serving().Guido van Rossum2013-10-181-3/+3
| | | |
* | | | Improved argument handling.Guido van Rossum2013-10-182-7/+14
| |_|/ |/| |
* | | Report total bytes written.Guido van Rossum2013-10-181-3/+5
| |/ |/|
* | Add size argument to source example.Guido van Rossum2013-10-171-7/+9
| |
* | Add proper argument parsing to source/sink examples.Guido van Rossum2013-10-172-11/+56
|/
* Fix misspelled peername in examples. Also comment out drain() call.Guido van Rossum2013-10-162-4/+5
|
* Fix sock/peer name requestGuido van Rossum2013-10-111-2/+2
|