Issue #851 resolved

malformed get request to wsgiserver results in traceback

created an issue

Found in version 3.1.0.

If you perform a malformed or incomplete GET request on a cherry wsgiserver, you'll get a traceback: {{{ telnet zorander 10000 Trying Connected to zorander. Escape character is '^]'. GET / HTTP/1.1 500 Internal Server Error Content-Length: 660 Content-Type: text/plain

Traceback (most recent call last): File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/", line 983, in communicate req.parse_request() File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/", line 304, in parse_request self._parse_request() File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/", line 335, in _parse_request method, path, req_protocol = request_line.strip().split(" ", 2) ValueError: need more than 2 values to unpack Connection to zorander closed by foreign host. }}}

Comments (3)

  1. Log in to comment