Skip to content

This operation would block forever #3

@arafiq

Description

@arafiq

I keep getting this error, every other time I refresh this page. I am fairly new to gevent to figure out what is going on. The code that I am implementing is very similar to the one posted in the example. I am using the latest version of django-websockets-redis ( v0.2.1 installed via pypi). I am happy post my code if needed. I am currently testing this in development. (python manage.py runserver)

 [03/Jan/2014 08:54:58] "GET /ws/foobar?subscribe-session&subscribe-user&publish-user&subscribe-broadcast HTTP/1.1" 101 0
 Other Exception:
 Traceback (most recent call last):
 File "build/bdist.linux-x86_64/egg/ws4redis/wsgi_server.py", line 73, in __call__
    redis_store.send_persited_messages(websocket)
 File "build/bdist.linux-x86_64/egg/ws4redis/store.py", line 63, in send_persited_messages
    message = self._connection.get(channel)
 File "/env/local/lib/python2.7/site-packages/redis/client.py", line 705, in get
    return self.execute_command('GET', name)
 File "/env/local/lib/python2.7/site-packages/redis/client.py", line 461, in execute_command
    return self.parse_response(connection, command_name, **options)
 File "/env/local/lib/python2.7/site-packages/redis/client.py", line 471, in parse_response
    response = connection.read_response()
 File "/env/local/lib/python2.7/site-packages/redis/connection.py", line 334, in read_response
    response = self._parser.read_response()
 File "/env/local/lib/python2.7/site-packages/redis/connection.py", line 188, in read_response
    buffer = self._sock.recv(4096)
 File "/env/local/lib/python2.7/site-packages/gevent/socket.py", line 392, in recv
    self._wait(self._read_event)
 File "/env/local/lib/python2.7/site-packages/gevent/socket.py", line 298, in _wait
    self.hub.wait(watcher)
 File "/env/local/lib/python2.7/site-packages/gevent/hub.py", line 341, in wait
    result = waiter.get()
 File "/env/local/lib/python2.7/site-packages/gevent/hub.py", line 568, in get
    return self.hub.switch()
 File "/env/local/lib/python2.7/site-packages/gevent/hub.py", line 331, in switch
    return greenlet.switch(self)
 LoopExit: This operation would block forever

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