Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Websocket object in route doesn't get correct timeout when using gevent middleware #3

@cesarbp

Description

@cesarbp

Example:

websocket = GeventWebSocket(app, timeout=60*60)

@websocket.route("/ws")
def my_ws(ws):
     print ws.timeout  # prints 60 instead of 3600

I believe this is because the timeout is missing from the constructor in https://github.com/zeekay/flask-uwsgi-websocket/blob/master/flask_uwsgi_websocket/_gevent.py#L56

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