Issue #1154 duplicate

AssertionError in recv when SSL is enabled

Tarun Pondicherry
created an issue

When running cherrypy 3.2.2, pyopenssl 0.10, openssl 1.0.0, some requests result in an AssertionError because recv receives too many bytes. This does not occur when SSL is disabled.

{{{ File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 649, in respond self.body.process() File "/usr/lib/python2.6/site-packages/cherrypy/_cpreqbody.py", line 949, in process super(RequestBody, self).process() File "/usr/lib/python2.6/site-packages/cherrypy/_cpreqbody.py", line 515, in process proc(self) File "/usr/lib/python2.6/site-packages/cherrypy/_cpreqbody.py", line 136, in process_urlencoded qs = entity.fp.read() File "/usr/lib/python2.6/site-packages/cherrypy/_cpreqbody.py", line 788, in read data = self.fp.read(chunksize) File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 329, in read data = self.rfile.read(size) File "/usr/lib/python2.6/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1052, in read assert n <= left, "recv(%d) returned %d bytes" % (left, n) AssertionError: recv(26) returned 1400 bytes }}}

Comments (1)

  1. Log in to comment