| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| |
|
|
|
|
| |
Closes GH-102
Closes GH-103
Closes GH-104
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
| |
https://github.com/eventlet/eventlet/pull/59
|
| |
|
|
|
|
|
| |
First step to Python 3 compatibility
"2to3 -w -f except ." See [1]
[1] http://docs.python.org/2/library/2to3.html#fixers
|
| |
|
|
|
|
|
|
| |
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
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Fixes https://bitbucket.org/eventlet/eventlet/issue/143
|
| |
|
|
| |
Fixes https://bitbucket.org/eventlet/eventlet/issue/150/env-wsgiinput-returns-a-single-byte-at-a
|
| | |
|
| |
|
|
| |
event; Thanks to Peter Portante
|
| |\ |
|
| | |
| |
| |
| |
| | |
This keeps the default intact (8192 is the max request line length) but allows
the WSGI Server users to override it.
|
| | |
| |
| |
| |
| | |
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.
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | |/ |
|
| | |
| |
| |
| | |
suggestion.
|
| | | |
|
| | |
| |
| |
| | |
tests for it, too.
|
| | | |
|
| | |
| |
| |
| | |
WSGI generally. Fixes #62.
|
| | |
| |
| |
| | |
Brought the unicode exception under test coverage.
|
| | |
| |
| |
| | |
doesn't use a chunked response and closes the connection.
|
| | | |
|
| | |
| |
| |
| | |
isinstance delibarately doesn't work on Proxy objects).
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |\ \
| | |/ |
|
| | | |\ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- __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.
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ / |
|
| |/
|
|
| |
extraneous whitespace, wrapped long lines
|
| |
|
|
| |
thing.
|