summaryrefslogtreecommitdiff
path: root/eventlet/green
Commit message (Collapse)AuthorAgeFilesLines
* Python 3 compat: Improve subprocess, WSGI and testspython3-nextJakub Stasiak2014-10-121-2/+2
|
* Clean upJakub Stasiak2014-10-111-3/+1
|
* Python 3 compat: Improve SSL and WSGI compatJakub Stasiak2014-10-111-6/+9
|
* Reformat with autopep8Jakub Stasiak2014-10-114-7/+17
|
* Fix SSL socket wrapping and Python 2.7.9 compatibilityJakub Stasiak2014-10-111-2/+5
| | | | This is connected to GH #135 and BitBucket #165
* Python 3 compat: Improve various bitsJakub Stasiak2014-10-101-17/+46
| | | | | | | | | | | | | | | | | | This includes changes to WSGI, websocket, bytes/str/unicode handling, SSL, backdoor, greenio and tests. Some comments and conditionals (PY2/PY3) were added for clarity GH issues: Closes #106 Closes #111 Closes #118 Closes #141 Incidentally should also close #135 (reopen if didn't) cc #6
* Remove most of the deprecated codeJakub Stasiak2014-10-101-16/+0
| | | | Closes GH #144
* Tune documentationJakub Stasiak2014-10-051-0/+1
|
* green.socket: create_connection: UnboundLocalError on Python3gh-123-local-msgSergey Shepelev2014-09-051-1/+2
| | | | Fixes https://github.com/eventlet/eventlet/issues/123
* PEP-8 fixesSergey Shepelev2014-08-2723-140/+177
|
* Fix octal literalSimon Jagoe2014-08-191-2/+2
|
* hubs: defang after remove; related to second simultaneous read issue94-second-readMichael Kerrin2014-08-122-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/eventlet/eventlet/issues/94 We have to defang the listener after removing it from the hub Otherwise we never actaully remove it from the hub and get a return of the second simultanous read. This should fix this issue. Turn off __builtin__ monkey patching by default The reason is that eventlet.greenio.GreenPipe tries to adapt an original file f, and performs the following check isinstance(f, file) f is an original file object with file is now our file method. This fails causing TypeError nova-api exercises this Fix up zmq to use the extended add signature Having heard no problems relating eventlet and zmq, I'm not going to dive in and drop random pataches against it. If the 'Second simultaneous *er' crops up against zmw then we at least now have the machinery to address it.
* Fix second simultaneous read (parallel paramiko issue)Jan Grant2014-08-123-8/+68
| | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/eventlet/eventlet/issues/94 Because of the way paramiko utilises a client thread to manage its communication, it's not been compatible with eventlet when run in parallel. It's not the only place these problems would arise. This stemmed from the reuse of a fileno by the underlying OS. Because listeners are registered against this descriptor, it would be possible for old listeners to receive events destined for newer descriptors; occasionally code would attempt to utilise the new descriptor from a different greenlet, giving rise to the 'second simultaneous read' problem. Whenever a Python object is created to wrap one of these filenos, we now signal the hub in order that it can correctly obsolete extant listeners against that fileno. This is a fairly tricky operation, due to the way that listeners' threads are interleaved with the hub's operation - there are a number of small fixes here to defend against one listener from effectively obsoleting another when an event is pending against it.
* Python 3 compatibility fixesJakub Stasiak2014-07-185-8/+21
| | | | | | Closes GH-102 Closes GH-103 Closes GH-104
* PEP8 whitespaceSergey Shepelev2014-06-121-4/+17
|
* Python3: __bool__, im_code, im_funcVictor Sergeyev2014-04-242-6/+15
|
* python3 compatibilitySergey Shepelev2014-04-232-7/+9
| | | | | | | - dict.items().pop() in proc - str/bytes in backdoor, api_test, ssl_test, test__refcount - import httplib from six - PEP-8 fixes
* PEP-8 fixes, tox runs pep8 checkSergey Shepelev2014-04-231-2/+6
| | | | | For now, pep8 check is only run for some files known to be clean, we should clean the rest and enable pep8 check for all files then.
* python3 compatibility: print functionSergey Shepelev2014-04-231-2/+2
|
* green: subprocess: do not use `new` module for compatibility with Python3Viktors2014-04-151-7/+7
| | | | | | | Module `new` was removed in python 3 so we should remove it's usage due to py3 compability https://github.com/eventlet/eventlet/pull/87
* python3 compat fixes; Thanks to Astrum Kuo郭旭星Astrum Kuo2014-04-022-2/+2
| | | | | | https://github.com/eventlet/eventlet/pull/82 Celery could work with eventlet in Python3 now
* python3 compat fixesVictor Sergeyev2014-03-281-2/+6
| | | | https://github.com/eventlet/eventlet/pull/59
* green.profile: accumulate results between runs; Thanks to Zhang HuaSergey Shepelev2014-03-241-9/+16
| | | | https://bitbucket.org/eventlet/eventlet/issue/162/eventletgreenprofile-can-not-accumulate
* python3 compat: `raise E(arg)` syntaxSergey Shepelev2013-12-031-1/+1
| | | | .with_traceback() is not backward compatible, so left to on-demand 2to3 run
* python3 compat: remove lots of Python 2.5 and earlier dependent code; use ↵Sergey Shepelev2013-12-033-57/+38
| | | | print() function syntax
* python3 compat: 2to3: `except E as e:` syntaxDavanum Srinivas2013-12-037-20/+20
| | | | | | | First step to Python 3 compatibility "2to3 -w -f except ." See [1] [1] http://docs.python.org/2/library/2to3.html#fixers
* green.ssl: Fix NameError GH-17Jakub Stasiak2013-08-121-1/+1
| | | | https://github.com/eventlet/eventlet/issues/17
* green.zmq: pyzmq 13.x compatibilityEdward George2013-07-021-6/+15
| | | | Fixes 'Socket has no such option: _EVENTLET_SEND_EVENT' errors
* green: subprocess: patch _communicate_with_{poll,select} methodsEdward George2013-06-101-0/+9
| | | | | https://github.com/eventlet/eventlet/pull/24 eventlet.green.subprocess.Popen.communicate() was broken in python 2.7
* green: subprocess: Popen.wait accepts new `timeout` kwargSergey Shepelev2013-06-071-3/+26
| | | | | | As in Python 3.3 http://docs.python.org/3.3/library/subprocess.html#subprocess.Popen.wait https://bitbucket.org/eventlet/eventlet/issue/89/add-a-timeout-argument-to-subprocesspopen https://bitbucket.org/eventlet/eventlet/pull-request/30
* green: select: ensure that hub can .wait() at least once before timeoutYAMAMOTO Takashi2013-04-161-5/+13
| | | | https://github.com/eventlet/eventlet/pull/25
* zmq: avoid spurious wakeups by forcing zmq events to be processed when no ↵Geoff Salmon2013-01-211-2/+7
| | | | threads waiting
* zmq: Socket.close() support linger argument; Thanks to Eric WindischSergey Shepelev2013-01-141-2/+2
| | | | | https://github.com/eventlet/eventlet/issues/9 Regression. Worked in 0.9.16 because .close() method was not overriden.
* ssl: socket.sendall(): trampoline if sent 0 bytes; fixes CPU burnraylu2013-01-121-0/+2
| | | | https://bitbucket.org/which_linden/eventlet/issue/134/greenssl-performance-issues
* Fix zmq._QueueLock test in Python2.6 - TestCase.assertRaises is not context ↵Sergey Shepelev2012-12-111-1/+7
| | | | manager yet
* Test for Pull Request 22: zmq getsockopt(EVENTS) wake correct threadsSergey Shepelev2012-12-111-3/+3
|
* zmq getsockopt(EVENTS) wake correct threadsEric Windisch2012-10-101-2/+2
| | | | | | | | | | | | | | When calling getsockopt(EVENTS), green.zmq was attempting to wake threads that did not exist. I believe the intention was to wake self.(send|recv)_event per patch dc4d55d, but a typo turned this into self.(send|recv)_evt. This variable has since been renamed to self._eventlet_(send|recv)_event, as we will call with this patch.
* fix waitpid returning (0, 0)Vishvananda Ishaya2012-11-081-1/+1
|
* Fix python 2.5 supportFloris Bruynooghe2012-09-052-17/+10
| | | | | | | | | | | * Avoid using property.setter(), use old-style properties instead. * Avoid using the new pep8-style threading API. * Use from __future__ import with_statement where it is used. * Add python 2.5 environments to tox, no epolls since that did not yet exist.
* Ensure threading._shutdown gets patched tooJohannes Erdfelt2012-03-181-1/+1
| | | | | | | Since threading can get imported multiple times, ensure that the _shutdown symbol is patched so the _MainThread matches what is in _active. This patch fill fix the KeyError on exit under Python 2.7
* Make GreenThread wrapper implement more of the Thread interfaceJohannes Erdfelt2012-03-021-2/+26
| | | | | | | | Add name setter as well as setName and set_name methods. Add ident and daemon properties as well as isAlive, is_alive, isDaemon and is_daemon methods. Add unit tests for GreenThread wrapper
* Make sure _after_fork gets patched too so forks don't print spuriousJohannes Erdfelt2012-03-021-1/+1
| | | | warnings
* Monkey patch threading.current_thread() as wellJohannes Erdfelt2012-02-291-1/+84
| | | | | | | | | | Fixes bug 115 Patching thread.get_ident() but not threading.current_thread() can result in _DummyThread objects being created. These objects will never be garbage collected and will leak memory. In a long running process (like a daemon), this can result in a pretty significant memory leak if it uses green threads regularly.
* Merged in brandon/eventlet (pull request #6)Sergey Shepelev2012-02-061-79/+280
|\
| * unused importGeoff Salmon2012-02-061-1/+0
| |
| * Simplify zmq. Remove premature optimizations. Add "_eventlet" to all new ↵Geoff Salmon2012-02-021-132/+31
| | | | | | | | attributes.
| * remove unused importGeoff Salmon2012-01-261-1/+0
| |
| * wrap all zmq send and recv methods to use correct docs and namesGeoff Salmon2012-01-261-6/+9
| |
| * test closing zmq x-socketsGeoff Salmon2012-01-261-4/+0
| |
| * Rename zmq._SimpleEvent. Add close during recv test. Updating comments.Geoff Salmon2012-01-261-45/+32
| |