arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
276 stars 129 forks source link

Support configuration of waitTime for reconnect #107

Closed woolite64 closed 6 years ago

woolite64 commented 7 years ago

The current implementation in IOMonad includes a linearly scaling reconnect delay that goes from 0ms to 5000ms in 100ms increments.

Could these be opened to configuration? e.g. waitTimeMin, waitTimeMax, waitTimeIncrement, etc.

woolite64 commented 7 years ago

PR modifies the monad to input an options parameter instead of just a name. This exposes timing related to connection retry behavior, and defaults to original values if not provided.