Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | reimplement BoundedSemaphore using two Semaphores; this resulted in a much ↵ | Denis Bilenko | 2009-03-29 | 1 | -2/+2 |
| | | | | | | | more readable implementation - queue(0) should work well as a channel now - add 'balance' property, similar to that of channel's | ||||
* | GreenTransportBase: revert half-closability (does not work with TLS anyway ↵ | Denis Bilenko | 2009-02-20 | 1 | -46/+46 |
| | | | | | | | and not worth the complexity) - loseConnection() and write() have an optional 'sync' argument - twistedutil.protocol.ValueQueue improved | ||||
* | GreenTransportBase: implement half-closability and write() that blocks until ↵ | Denis Bilenko | 2009-02-09 | 1 | -24/+68 |
| | | | | | | | | | | data is sent. * add loseWriteConnection() method * add async_write() that does not wait (synonim for transport.write()) * GreenTransport's protocols now required to implement IHalfClosable interface * GreenTransport use PullProducer instead of PushProducer * add test for loseWriteConnection and remove test that does not work anymore | ||||
* | proc fix: Source.wait(0) used to do the wrong thing - return None instead of ↵ | Denis Bilenko | 2009-01-21 | 1 | -6/+17 |
| | | | | raising TimeoutError | ||||
* | proc: special case for link(current greenlet) - raise an exception ↵ | Denis Bilenko | 2009-01-19 | 1 | -5/+7 |
| | | | | immediatelly if the result is available | ||||
* | removed httpd and its test | Denis Bilenko | 2009-01-13 | 1 | -212/+0 |
| | |||||
* | removed debugging print statement | Denis Bilenko | 2009-01-13 | 1 | -1/+0 |
| | |||||
* | Automated merge with ↵ | Denis Bilenko | 2009-01-13 | 22 | -316/+867 |
|\ | | | | | | | http://www.donovanpreston.com:8888/eventlet-twisted-integration/ | ||||
| * | updated copyrights | Denis Bilenko | 2009-01-13 | 19 | -13/+152 |
| | | |||||
| * | made test suite runnable under 2.4; it logs the Python version in the output | Denis Bilenko | 2009-01-12 | 9 | -92/+107 |
| | | |||||
| * | proc module: renames wait to waitall; it only supports list of Procs now but ↵ | Denis Bilenko | 2009-01-12 | 1 | -11/+11 |
| | | | | | | | | not individual Procs like it did before | ||||
| * | tests: fixed a few unused or forgotten imports | Denis Bilenko | 2009-01-12 | 4 | -4/+3 |
| | | |||||
| * | simplifed and rewrote proc module; the interface is mostly the same except | Denis Bilenko | 2009-01-12 | 1 | -75/+150 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * notification happens in the main loop greenlet - no blocking stuff here is allowed * callbacks now called with different args; events and greenlets are notified the same way as before * GreenletExit is not converted to return value anymore; it's returned like any other exception * weak links aren't supported ("weak" argument is gone) * link_raise renamed to link_exception * link_return renamed to link_value * calling link_value does not remove "exception" link anymore and the other way around is also true * link() will to try to perform notification immediatelly even if the result is available * obscure function forward is gone * ProcKilled renamed to ProcExit compatible changes: * Source class is added that maintans the links and delivers the result | ||||
| * | added test_thread__boundedsem.py | Denis Bilenko | 2009-01-12 | 1 | -0/+11 |
| | | |||||
| * | added test_socket_ssl.py from standard python tests | Denis Bilenko | 2009-01-12 | 1 | -0/+133 |
| | | |||||
| * | added test__socket_errors.py | Denis Bilenko | 2009-01-12 | 1 | -0/+21 |
| | | |||||
| * | fixed test__event.py: removed old imports of Job | Denis Bilenko | 2009-01-11 | 1 | -1/+1 |
| | | |||||
| * | added test__hub.py: tests schedule_local and schedule_global difference | Denis Bilenko | 2009-01-11 | 1 | -0/+42 |
| | | |||||
| * | removed Job & friends from coros; use proc instead | Denis Bilenko | 2009-01-11 | 1 | -128/+0 |
| | | |||||
| * | removed CancellingTimersGreenlet and Hub.cancel_timers; instead LocalTimer ↵ | Denis Bilenko | 2009-01-11 | 1 | -19/+23 |
| | | | | | | | | | | | | | | | | | | | | is used which does not fire if the greenlet it's bound to is dead; * removed Hub's track_timer method * removed Hub.track_timer's track parameter * twistedHub also loses timer_finished method * commented 2 tests in coros_test.py that cannot work with the new order * eventlet now uses unchanged greenlets! | ||||
| * | generate_report.py: protect from bogus input | Denis Bilenko | 2009-01-11 | 1 | -5/+5 |
| | | |||||
| * | added copyright | Denis Bilenko | 2008-12-31 | 12 | -0/+240 |
| | | |||||
* | | merge | donovan | 2008-12-29 | 5 | -118/+105 |
|\ \ | |/ |/| | |||||
| * | Rename the eventlet.support.greenlet module to greenlets to avoid clashing ↵ | donovan | 2008-12-29 | 5 | -118/+105 |
| | | | | | | | | with the pypi greenlet distribution; support the pypi greenlet distribution; port httpc_test to use wsgi instead of httpd; add channel back in because I couldn't get pool to work properly with queue yet | ||||
* | | added proc - advanced coroutine control, with tests, 1 test fails | Denis Bilenko | 2008-12-29 | 1 | -0/+303 |
|/ | |||||
* | added test for semaphore(0, 0) deadlock | Denis Bilenko | 2008-12-24 | 1 | -0/+30 |
| | |||||
* | removed test_xxx_green.py files; moved the relevant stuff to test_xxx.py ↵ | Denis Bilenko | 2008-12-24 | 15 | -59/+33 |
| | | | | directly; undone some of my changes to python standard tests | ||||
* | fixed typo | Denis Bilenko | 2008-12-22 | 1 | -1/+1 |
| | |||||
* | twistedutil fix: SpawnFactory could spawn handler with unconnected transport ↵ | Denis Bilenko | 2008-12-19 | 1 | -2/+26 |
| | | | | (connectionMade); changed Protocol not to hold references to gtransport but send transport via _queue | ||||
* | added [failing] test for coros.event send method bug | Denis Bilenko | 2008-12-16 | 1 | -1/+14 |
| | |||||
* | added tests for coros.JobGroup | Denis Bilenko | 2008-12-16 | 1 | -15/+78 |
| | |||||
* | better error messages in case of test failure | Denis Bilenko | 2008-12-16 | 1 | -3/+3 |
| | |||||
* | twistedutil.protocol.GreenTransport: made bufferSize of twisted's transport ↵ | Denis Bilenko | 2008-12-16 | 1 | -105/+80 |
| | | | | customizable | ||||
* | made api.timeout accept None as seconds argument, meaning the whole thing is ↵ | Denis Bilenko | 2008-12-16 | 1 | -3/+8 |
| | | | | disabled | ||||
* | test__api_timeout.py: fixed always true asserts; replaced always false ↵ | Denis Bilenko | 2008-12-16 | 1 | -6/+6 |
| | | | | asserts with explitit raise | ||||
* | Job's __init__ now accepts event as a parameter instead of a function; to ↵ | Denis Bilenko | 2008-12-15 | 1 | -7/+7 |
| | | | | spawn a function either use 'spawn' method or spawn_new classmethod | ||||
* | removed httpd_test and wsgi_test from the list of tests skipped by default | Denis Bilenko | 2008-12-10 | 1 | -1/+1 |
| | |||||
* | added makeGreenFile method to greenio.GreenSocket which creates GreenFile ↵ | Denis Bilenko | 2008-12-10 | 4 | -28/+28 |
| | | | | instance instead of standard socket._fileobject (like makefile() does), Converted all the old eventled code and tests to use makeGreenFile() this fixes a huge number of failing tests | ||||
* | Removed spawn_link and AsyncJob; added Job class that does the same | Denis Bilenko | 2008-12-10 | 1 | -9/+9 |
| | |||||
* | renamed Buffer->GreenTransport, BufferCreator->GreenClientCreator etc; made ↵ | Denis Bilenko | 2008-12-10 | 1 | -0/+211 |
| | | | | them use consumer/producer features of twisted; removed doctests added a unittest | ||||
* | added exit_unless_twisted function to greentest; moved my code from ↵ | Denis Bilenko | 2008-12-10 | 4 | -11/+17 |
| | | | | test_support.py to greentest/__init__.py | ||||
* | added test for api.timeout: explicitly supplying _SilentException as an argument | Denis Bilenko | 2008-12-10 | 1 | -1/+14 |
| | |||||
* | added test for api.timeout that checks no references to the error object ↵ | Denis Bilenko | 2008-12-10 | 1 | -0/+12 |
| | | | | were leaked | ||||
* | added 'throw_args' test for api.timeout | Denis Bilenko | 2008-12-10 | 1 | -0/+14 |
| | |||||
* | renamed coros.async_result to coros.AsyncJob; added poll, kill_after, ↵ | Denis Bilenko | 2008-12-10 | 1 | -4/+36 |
| | | | | __nonzero__ methods; made it access greenlet via weakref | ||||
* | fixed bug with nested api.with_timeout interfering with each other; added a ↵ | Denis Bilenko | 2008-12-10 | 1 | -1/+6 |
| | | | | testcase | ||||
* | api.timeout: removed doctest, added a unittest. added a testcase for nested ↵ | Denis Bilenko | 2008-12-10 | 1 | -0/+61 |
| | | | | timeouts | ||||
* | added tests for eventlet.twistedutil.block_on | Denis Bilenko | 2008-12-05 | 1 | -0/+39 |
| | |||||
* | simple support for disabling tests | Denis Bilenko | 2008-12-05 | 2 | -1/+10 |
| | |||||
* | added spawn_link function (with tests) | Denis Bilenko | 2008-11-24 | 1 | -3/+38 |
| |