r3labs / sse

Server Sent Events server and client for Golang
Mozilla Public License 2.0
870 stars 180 forks source link

consequences of the default recoonect strategy behaviour should be documented / made clear #174

Open draganm opened 1 year ago

draganm commented 1 year ago

When using the client, if no reconnect strategy is specified backoff.NewExponentialBackOff() is used. Default behaviour of that is to do backoff retry for 15 minutes and then stop retrying, which is not what one would expect to happen (see here, here and here) .

I've tripped over this issue on a production system, and I'm pretty sure I wasn't neither first nor the last one.