-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
100-continue and PUT request - they hang on env['wsgi.input'].read() call #4
Comments
BTW, line # 483 in |
Plus, it may be a good idea to
I'd like to call it as with WSGIServer(...) as server:
server.start()
### |
@jn0 |
seems related to cherrypy/cherrypy#1486 |
Yes, it looks the same. |
@jn0 This is fixed in cherrypy/cheroot upstream. Please use cheroot of version v5.6.0 |
wsgiserver 1.3 in Python 2.7.12 under Ubuntu 16.04
Create the script
run it and call with
curl
.You'll see that
performs just fine with POST method, but
will cause the app (and the whole box!) to hang until
alarm
just after sendingHTTP/1.1 100 Continue
response.If one comment out the
.read()
call, then normal operation resumes:Here we are.
I.e. it's the
.read()
method ofChunkedRFile
class fromwsgiserver.py
module.If the
size
parameter is not set, then it could set once theself.buffer
to something and loop forever eating all the RAM available (indata += self.buffer
).I think, the line # 457
should read somehow as
Yes, it works for me with this "patch".
The text was updated successfully, but these errors were encountered: