mirror of
https://github.com/django/daphne.git
synced 2025-07-29 00:19:45 +03:00
change test
This commit is contained in:
parent
9701e336fa
commit
62e25f7201
|
@ -385,7 +385,7 @@ class HTTPFactory(http.HTTPFactory):
|
|||
# WebSocket timeout checking and keepalive ping sending
|
||||
elif isinstance(protocol, WebSocketProtocol):
|
||||
# Timeout check
|
||||
if protocol.duration() > self.websocket_timeout and self.websocket_timeout > -1:
|
||||
if protocol.duration() > self.websocket_timeout and self.websocket_timeout >= 0:
|
||||
protocol.serverClose()
|
||||
# Ping check
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user