Description of code - what bug does this fix / what feature does this add?
Describe the bug
I observe an infinite loop in the timeout retry mechanism of the ConnectionHandler
I think the issue is that the connection's last_message is not being reset on HTTPAsynConnection._open
To Reproduce
Steps to reproduce the behavior:
ConnectionHandler._watcher detects a timeout and close the connection
The connection and the _watcher get reinitialized in ConnectionHandler._create_connection
The newly created _watcher task closes the newly created connection because self.conn.last_message is still set to the previous connection's last_message
Description of code - what bug does this fix / what feature does this add?
Describe the bug I observe an infinite loop in the timeout retry mechanism of the ConnectionHandler I think the issue is that the connection's
last_message
is not being reset onHTTPAsynConnection._open
To Reproduce Steps to reproduce the behavior:
ConnectionHandler._watcher
detects a timeout and close the connection_watcher
get reinitialized inConnectionHandler._create_connection
_watcher
task closes the newly created connection becauseself.conn.last_message
is still set to the previous connection'slast_message
Screenshots![Screenshot from 2022-09-08 10-15-57](https://user-images.githubusercontent.com/3825783/189072969-a8468743-de68-4ae9-8087-eb70025e14d2.png)
Operating System: -linux
Cryptofeed Version
2.3.0
[ ] - Tested
[ ] - Changelog updated
[ ] - Tests run and pass
[ ] - Flake8 run and all errors/warnings resolved
[ ] - Contributors file updated (optional)