koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

tokenrenewer: stop trying to renew token when kite went down #187

Closed rjeczalik closed 7 years ago

rjeczalik commented 7 years ago

This PR handles a situation, when kite missed disconnect signal (observed to happen with XHR transport).

Due to this, kite floods the log files with:

    ERROR    token renewer: no kites found (057542be08a10e72) Cannot renew token for Kite: 091de227-f943-4aa5-98f0-024a709a4f57 I will retry in 10 seconds...