Skip to content

Timeout overridden to None in BaseLongPollingView dispatch method #1

@theJenix

Description

@theJenix

Using Django 1.6.1, and django_longpolling 0.1.1 (installed using pip), it would appear that the timeout value passed to BaseLongPollingView (either through the as_view method or set via derived class) is ignored. It looks like the following line in dispatch is the culprit:

self.timeout = self.kwargs.get('channel')

In my case, kwargs is empty (from Django); if this is standard, then self.timeout should not be set here without checking to make sure there's a value in kwargs to set.

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