Removed eventlet.input environment variable, it just wasted hashtable entries.

This commit is contained in:
Ryan Williams
2009-12-05 00:16:21 -08:00
parent e0afaa147f
commit 09a657e889
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ Thanks To
* Chuck Thier, reporting a bug in processes.py
* Brantley Harris, reporting bug #4
* Taso Du Val, reproing an exception squelching bug, saving children's lives ;-)
* R. Tyler Ballance, bug report on tpool on Windows, help with improving corolocal module
* R. Tyler Ballance, bug report on tpool on Windows, help with improving corolocal module, keen eye for redundancy
* Sergey Shepelev, PEP 8 police :-), reporting bug #5
* Luci Stanescu, for reporting twisted hub bug
* Marcus Cavanaugh, for test case code that has been incredibly useful in tracking down bugs

View File

@@ -280,9 +280,9 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
finally:
if hasattr(result, 'close'):
result.close()
if self.environ['eventlet.input'].position < self.environ.get('CONTENT_LENGTH', 0):
if self.environ['wsgi.input'].position < self.environ.get('CONTENT_LENGTH', 0):
## Read and discard body
self.environ['eventlet.input'].read()
self.environ['wsgi.input'].read()
finish = time.time()
self.server.log_message('%s - - [%s] "%s" %s %s %.6f' % (
@@ -348,7 +348,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
wfile = None
wfile_line = None
chunked = env.get('HTTP_TRANSFER_ENCODING', '').lower() == 'chunked'
env['wsgi.input'] = env['eventlet.input'] = Input(
env['wsgi.input'] = Input(
self.rfile, length, wfile=wfile, wfile_line=wfile_line,
chunked_input=chunked)