summaryrefslogtreecommitdiff
path: root/eventlet/wsgi.py
Commit message (Collapse)AuthorAgeFilesLines
* Python 3 compat: Improve subprocess, WSGI and testspython3-nextJakub Stasiak2014-10-121-3/+6
|
* Python 3 compat: Improve SSL and WSGI compatJakub Stasiak2014-10-111-4/+2
|
* Python 3 compat: Fix precedence bugraylu2014-10-111-1/+1
|
* Python 3 compat: Improve various bitsJakub Stasiak2014-10-101-24/+24
| | | | | | | | | | | | | | | | | | 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
* wsgi: pep8 fixesTushar Gohad2014-08-271-24/+43
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* wsgi: Support optional headers w/ "100 Continue" responsesTushar Gohad2014-08-241-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since WSGI is all about a single response to a single request, in order for servers to process a PUT as a single HTTP request and at the same time pass **hints** back to the client (for example, a payload type that the server can accept, or to inform the client that the server expects to receive payload metadata at the end of the payload transfer, etc), "100 Continue" response headers is pretty much only place to add these hints. This is consistent with **RFC2616, section 10.1**: 10.1 Informational 1xx This class of status code indicates a provisional response, consisting only of the **Status-Line** and **optional headers**, and is terminated by an empty line. Openstack Swift has an immediate use case for this feature where the object server will use an "Accept-Payload-Footer: 1" like header to hint the proxy server to send a payload footer after it has finished transmitting the payload (for sending metadata for an erasure coded or encrypted payload, enforcing end-to-end Etag checks, etc). Addresses eventlet issue/enhancement #126 Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* wsgi: websocket: Reformat code + tests (PEP-8)Jakub Stasiak2014-07-181-28/+29
|
* Python 3 compatibility fixesJakub Stasiak2014-07-181-12/+30
| | | | | | Closes GH-102 Closes GH-103 Closes GH-104
* wsgi: capitalize_response_headers optionSergey Shepelev2014-04-221-6/+28
| | | | | | | Setting this to False provides compatibility with broken clients which expect response header names in particular case, such as ETag by AWS Java SDK. https://github.com/eventlet/eventlet/issues/80
* python3 compat fixesVictor Sergeyev2014-03-281-3/+5
| | | | https://github.com/eventlet/eventlet/pull/59
* python3 compat: 2to3: `except E as e:` syntaxDavanum Srinivas2013-12-031-5/+5
| | | | | | | First step to Python 3 compatibility "2to3 -w -f except ." See [1] [1] http://docs.python.org/2/library/2to3.html#fixers
* wsgi: Allow minimum_chunk_size to be overriden on a per request basisDavid Goetz2013-09-051-2/+4
| | | | | | | | The application can set environ['eventlet.minimum_write_chunk_size'] which will override the minimum_chunk_size set on server initialization for a single request. https://bitbucket.org/eventlet/eventlet/pull-request/37/allow-minimum_chunk_size-to-be-overriden
* wsgi: configurable socket_timeoutSergey Shepelev2013-08-091-3/+10
|
* wsgi: pep8 whitespaceSergey Shepelev2013-08-081-2/+9
|
* wsgi: close timed out client connectionsSergey Shepelev2013-08-081-0/+1
|
* wsgi: handle connection socket timeoutsPaul Oppenheim2013-07-091-2/+8
| | | | Fixes https://bitbucket.org/eventlet/eventlet/issue/143
* wsgi: env['wsgi.input'] was returning 1 byte stringsEric Urban2013-07-091-1/+1
| | | | Fixes https://bitbucket.org/eventlet/eventlet/issue/150/env-wsgiinput-returns-a-single-byte-at-a
* wsgi: minimum_chunk_size of last Server altered all previous (global variable)Jakub Stasiak2013-04-091-4/+12
|
* wsgi: environ[REMOTE_PORT], also available in log_format, plus log accept ↵Sergey Shepelev2013-01-231-12/+18
| | | | event; Thanks to Peter Portante
* Merged in clayg/eventlet/bug95 (pull request #25)Sergey Shepelev2012-12-101-74/+173
|\
| * Make the maximum URL length configurableTomas Sedovic2012-04-051-2/+7
| | | | | | | | | | This keeps the default intact (8192 is the max request line length) but allows the WSGI Server users to override it.
| * Add environ['RAW_PATH_INFO'] to hold the request path as it was sent fromDoug Weimer2012-02-291-0/+1
| | | | | | | | | | the client. Add a test_path_info_decoding unit test to verify that both the unquoted PATH_INFO and raw RAW_PATH_INFO are set correctly.
| * mergejmg.utn2011-11-061-9/+16
| |\
| | * log_output flag parameter added to the wsgi serverjmg.utn2011-11-061-9/+16
| | |
| * | Limit overall HTTP header length and testsGregory Holt2011-10-201-4/+19
| | |
| * | Limit HTTP header line lengthGregory Holt2011-10-201-1/+32
| |/
| * Debug mode now has an off mode to silence tracebacks on 500, per redbo's ↵Ryan Williams2011-02-041-7/+16
| | | | | | | | suggestion.
| * Stop wsgi server from blowing up when given an ipv6 socketredbo2011-01-071-2/+2
| |
| * Fixing empty-query-string compatibility that mcarter reported, added unit ↵Ryan Williams2010-10-241-6/+4
| | | | | | | | tests for it, too.
| * Documenting ssl servers.Ryan Williams2010-09-171-1/+1
| |
| * Support for SSL websockets, which also happens to improve our SSL support in ↵Ryan Williams2010-09-161-1/+5
| | | | | | | | WSGI generally. Fixes #62.
| * eventlet.wsgi no longer prints error messages, it instead uses the logfile. ↵Ryan Williams2010-08-111-5/+5
| | | | | | | | Brought the unicode exception under test coverage.
| * Ensure that when an exception is raised in the application the server ↵Ryan Williams2010-08-111-2/+4
| | | | | | | | doesn't use a chunked response and closes the connection.
| * wsgi posthooksGreg Holt2010-07-021-0/+4
| |
| * Upgrading wsgi to also ignore tpooled AlreadyHandled results (because ↵Ryan Williams2010-06-211-1/+2
| | | | | | | | isinstance delibarately doesn't work on Proxy objects).
| * Chunked readline fixes by schmir, ported from gevent by redbo.Ryan Williams2010-05-271-28/+47
| |
| * Fix for infinite loop in wsgi.py, thanks to redbo's repro.Ryan Williams2010-05-131-2/+5
| |
| * Changed is ALREADY_HANDLED test to isinstance testBen Ford2010-05-051-1/+1
| |
| * Adding ECONNRESET to list of tolerated accept() errors in wsgi.py.Ryan Williams2010-05-041-2/+2
| |
| * Made wsgi.ALREADY_HANDLED an iterable - more tests to comeBen Ford2010-04-091-1/+9
| |
| * module eventlet.common moved to eventlet.supportamajorek2010-03-091-1/+1
| |
| * Merge with latest which_linden tipamajorek2010-02-281-1/+1
| |\
| | * New eventlet.common module to create version-neutral layer. For now only ↵amajorek2010-02-281-1/+1
| | | | | | | | | | | | | | | | | | get_errno added there. All usage of e[0] replaced with either get_errno(e) or e.args[0] if intnetion was not to extract errno, but first argument
| * | MergeRyan Williams2010-02-281-9/+1
| |\ \ | | |/
| | * Merge with latest which_linden tipamajorek2010-02-261-44/+50
| | |\
| | * | first draft of making eventlet py3k compatible.amajorek2010-02-261-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - __import__ used to import system modules in places where local module with the same name exist. - GreenSocket.timeout private member renamed to _timeout. It is R/O property in 3.x socket.socket object. - Calls to GreensSocket.timeout changed to call gettimeout to isolate clients from GreenSocket internals. - GreenSocket access to unknown attributes will be forwarded to fd member. i.e. py3k has _io_refs property not needed in 2.x version - get_errno moved to eventlet/greenio.py to be accessible to every place where testing socket.error.errno is needed - Modified tests to use makefile with mode='w' where data was written. 3.x does not allow to write to file opened for reading. - socket._fileobject class does not exist in 3.x. It will be emulated with _fileobject function. Also moved definition from eventlet.green.socket to eventlet.grreenio.
| * | | - Fix bug where the server() function's environ arg was unused andTavis Rudd2010-02-271-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | wasn't passed to the Server() init call inside of it, contradicting the docstring. It was previously Server(..., environ=None, ...) - prefix some unused placeholder vars with underscores to make it clear they are unused.
* | | catch closed socket during finishClay Gerrard2012-12-081-1/+6
|/ /
* | fixed various minor issues that pyflakes complained about, removed ↵Tavis Rudd2010-02-241-46/+52
|/ | | | extraneous whitespace, wrapped long lines
* Removed unnecessary if; if data is '', the format string will do the right ↵Ryan Williams2010-02-171-5/+1
| | | | thing.