Skip to content

ws4py broken using cherrypy>=11.1.0 #235

Closed
@matt-hammond-001

Description

@matt-hammond-001

ws4py appears to be broken when using latest ws4py and cherrypy>=11.1.0 (installed via pip). Specifically I'm using python 2.7 and I've got these package versions installed:

  • ws4py==0.4.2
  • cheroot==5.9.1

I've tested with CherryPy==

  • Works: 10.2.1 | 10.2.2 | 11.0.0
  • Broken: 11.1.0 | 11.2.0 | 12.0.0 | 12.0.1

When running the simple server example I get the following error when I make a websocket connection to this server:

127.0.0.1 - - [23/Nov/2017:14:58:23] "GET /ws HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0"
[23/Nov/2017:14:58:23] ENGINE AttributeError("'NoneType' object has no attribute 'recv'",)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 1112, in communicate
    req.parse_request()
  File "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 638, in parse_request
    success = self.read_request_line()
  File "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 676, in read_request_line
    request_line = self.rfile.readline()
  File "/usr/local/lib/python2.7/dist-packages/cheroot/server.py", line 233, in readline
    data = self.rfile.readline(256)
  File "/usr/local/lib/python2.7/dist-packages/cheroot/makefile.py", line 233, in readline
    data = self.recv(self._rbufsize)
  File "/usr/local/lib/python2.7/dist-packages/cheroot/makefile.py", line 87, in recv
    data = self._sock.recv(size)
AttributeError: 'NoneType' object has no attribute 'recv'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions