Open fangaofeng opened 3 years ago
Hi @fangaofeng, please tell us more about your setup: 1) Python Version 2) Which broker do you use (and its version too)
+1 I'm facing the same issue. Broker mosquitto 2.x - python 3.8 or 3.9 both failing, It seems that on version 2 the server keepalive is sent and for previous versions it wasn't. I can only reproduce it with mosquitto 2.x
when there is keeplive in connack, the exception: result = self._handle_packet(cmd, packet) File "E:\workspace\mqtt-simulator\env\lib\site-packages\gmqtt\mqtt\handler.py", line 214, in _handle_packet handler(cmd, packet) File "E:\workspace\mqtt-simulator\env\lib\site-packages\gmqtt\mqtt\handler.py", line 286, in _handle_connack_packet File "E:\workspace\mqtt-simulator\env\lib\site-packages\gmqtt\mqtt\handler.py", line 257, in _update_keepalive_if_needed self._connection.keepalive = self._keepalive File "E:\workspace\mqtt-simulator\env\lib\site-packages\gmqtt\mqtt\connection.py", line 109, in keepalive self._keep_connection_callback = asyncio.get_event_loop().call_later(self._keepalive / 2, self._keep_connection) TypeError: unsupported operand type(s) for /: 'list' and 'int'