Skip to content

Delete greenlet start() #42

Merged
merged 1 commit into from Apr 9, 2012

3 participants

@yrttyr
yrttyr commented Mar 29, 2012

No description provided.

@gdw2
gdw2 commented on b073c11 Mar 30, 2012

+1.

With g.start() present, I was getting the following stack trace:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gevent/pywsgi.py", line 438, in handle_one_response
    self.run_application()
  File "/tmp/Lawouach-WebSocket-for-Python-77539f5/example/ws4py/server/geventserver.py", line 85, in run_application
    self.result = self.application(self.environ, start_response_for_upgrade)
  File "echo_gevent_server.py", line 64, in __call__
    return self.ws(environ, start_response)
  File "/tmp/Lawouach-WebSocket-for-Python-77539f5/example/ws4py/server/wsgi/middleware.py", line 131, in __call__
    environ.copy()))
  File "echo_gevent_server.py", line 75, in ws_app
    g.start()
  File "/usr/lib/python2.7/site-packages/gevent/greenlet.py", line 229, in start
    assert not self.started, 'Greenlet already started'
AssertionError: Greenlet already started
<EchoWebSocketServer fileno=3 address=127.0.0.1:9000>: Failed to handle request:
  request = GET /ws HTTP/1.1 from ('127.0.0.1', 60149)
  application = <EchoWebSocketServer fileno=3 address=127.0.0.1:9000>
@Lawouach Lawouach merged commit 4fd7ea8 into Lawouach:master Apr 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.