Experiencing frequent websocket stream reconnectsSee original GitHub issue
Using version 1.10 and the sample code from the readme, roughly every minute a reconnect occurs, preceded by the following message:
[ERROR:root] 2019-10-11 16:38:18,582 - Error connecting to CertStream - Connection is already closed. - Sleeping for a few seconds and trying again...
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
Hey folks, sorry for the delay here.
Digging into this, it looks like cowboy (the underlying websocket server for certstream) will timeout connections after a minute and force reconnection - https://github.com/ninenines/cowboy/issues/1259
I didn’t realize this and figured another mechanism would be handling heartbeats, which doesn’t seem to be the case. I’m going to add heartbeating to this and the other clients which should (hopefully) remedy these timeout issues (the golang client is experiencing this as well - https://github.com/CaliDog/certstream-go/issues/8).
Thanks for the info! Cheers, and happy holidays!