Skip to content

Commit f1acacc

Browse files
authored
fix: downgrade urllib3 version to support openSSL in workflow (#190)
1 parent 9cb66b1 commit f1acacc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

dev_requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ responses>=0.12.1
33
pytest-cov>=2.10.1
44
flake8>=3.8.4, <= 4.0.1
55
mock>=3.0.5
6+
urllib3<2.0

kiteconnect/ticker.py

-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class KiteTickerClientProtocol(WebSocketClientProtocol):
3232
PING_INTERVAL = 2.5
3333
KEEPALIVE_INTERVAL = 5
3434

35-
_ping_message = ""
3635
_next_ping = None
3736
_next_pong_check = None
3837
_last_pong_time = None
@@ -107,14 +106,11 @@ def onPong(self, response): # noqa
107106
def _loop_ping(self): # noqa
108107
"""Start a ping loop where it sends ping message every X seconds."""
109108
if self.factory.debug:
110-
log.debug("ping => {}".format(self._ping_message))
111109
if self._last_ping_time:
112110
log.debug("last ping was {} seconds back.".format(time.time() - self._last_ping_time))
113111

114112
# Set current time as last ping time
115113
self._last_ping_time = time.time()
116-
# Send a ping message to server
117-
self.sendPing(self._ping_message)
118114

119115
# Call self after X seconds
120116
self._next_ping = self.factory.reactor.callLater(self.PING_INTERVAL, self._loop_ping)

0 commit comments

Comments
 (0)