agsh / onvif

ONVIF node.js implementation
https://onvif.pages.dev
MIT License
707 stars 240 forks source link

retry on other error codes and sets max retry delay #321

Closed HarryEMartland closed 6 months ago

HarryEMartland commented 6 months ago

I tried your branch and it didn't reconnect after restarting my doorbell.

I have added some more error codes to retry on which I found when playing round turning off wifi on my laptop and disconnecting the doorbell from my network.

I have also changed the logic so it has a maximum delay rather than resetting back to 10ms as I think this is more standard in backoff type logic.

agsh commented 6 months ago

@HarryEMartland done! Please check it: https://github.com/agsh/onvif/pull/320 If everything is ok, I'll make a release and publish a new version in the NPM.