diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..39c67ac --- /dev/null +++ b/NEWS @@ -0,0 +1,18 @@ +0.6.x +===== + +Fixes some long-standing bugs where sometimes failures in accept() or connect() would cause the coroutine that was waiting to be double-resumed, most often resulting in SwitchingToDeadGreenlet exceptions as well as weird tuple-unpacking exceptions in the CoroutinePool main loop. + +0.6.1: Added eventlet.tpool.killall. Blocks until all of the threadpool threads have been told to exit and join()ed. Meant to be used to clean up the threadpool on exit or if calling execv. Used by Spawning. + +0.5.x +===== + +"The Pycon 2008 Refactor": The first release which incorporates libevent support. Also comes with significant refactoring and code cleanup, especially to the eventlet.wsgi http server. Docstring coverage is much higher and there is new extensive documentation: http://wiki.secondlife.com/wiki/Eventlet/Documentation + +The point releases of 0.5.x fixed some bugs in the wsgi server, most notably handling of Transfer-Encoding: chunked; previously, it would happily send chunked encoding to clients which asked for HTTP/1.0, which isn't legal. + +0.2 +===== + +Initial re-release of forked linden branch. diff --git a/examples/wsgi.py b/examples/wsgi.py new file mode 100644 index 0000000..150fead --- /dev/null +++ b/examples/wsgi.py @@ -0,0 +1,20 @@ +"""This is a simple example of running a wsgi application with eventlet. +For a more fully-featured server which supports multiple processes, +multiple threads, and graceful code reloading, see: + +http://pypi.python.org/pypi/Spawning/ +""" + +from eventlet import api, wsgi + + +def hello_world(env, start_response): + if env['PATH_INFO'] != '/': + start_response('404 Not Found', [('Content-Type', 'text/plain')]) + return ['Not Found\r\n'] + start_response('200 OK', [('Content-Type', 'text/plain')]) + return ['Hello, World!\r\n'] + + +wsgi.server(api.tcp_listener(('', 8080)), hello_world) + diff --git a/setup.py b/setup.py index 971084c..0bf1313 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import find_packages, setup setup( name='eventlet', - version='0.7pre', + version='0.6.1', description='Coroutine-based networking library', author='Linden Lab', author_email='eventletdev@lists.secondlife.com',