From f1acacc411e85bc3ffc49b5c11e1eb0f6892692e Mon Sep 17 00:00:00 2001 From: Rakesh R Date: Wed, 7 Feb 2024 15:41:50 +0530 Subject: [PATCH] fix: downgrade urllib3 version to support openSSL in workflow (#190) --- dev_requirements.txt | 1 + kiteconnect/ticker.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dev_requirements.txt b/dev_requirements.txt index 8ba38ee0..718d8a71 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -3,3 +3,4 @@ responses>=0.12.1 pytest-cov>=2.10.1 flake8>=3.8.4, <= 4.0.1 mock>=3.0.5 +urllib3<2.0 \ No newline at end of file diff --git a/kiteconnect/ticker.py b/kiteconnect/ticker.py index d906313e..ad858d7e 100644 --- a/kiteconnect/ticker.py +++ b/kiteconnect/ticker.py @@ -32,7 +32,6 @@ class KiteTickerClientProtocol(WebSocketClientProtocol): PING_INTERVAL = 2.5 KEEPALIVE_INTERVAL = 5 - _ping_message = "" _next_ping = None _next_pong_check = None _last_pong_time = None @@ -107,14 +106,11 @@ def onPong(self, response): # noqa def _loop_ping(self): # noqa """Start a ping loop where it sends ping message every X seconds.""" if self.factory.debug: - log.debug("ping => {}".format(self._ping_message)) if self._last_ping_time: log.debug("last ping was {} seconds back.".format(time.time() - self._last_ping_time)) # Set current time as last ping time self._last_ping_time = time.time() - # Send a ping message to server - self.sendPing(self._ping_message) # Call self after X seconds self._next_ping = self.factory.reactor.callLater(self.PING_INTERVAL, self._loop_ping)