The patch releases fixes expected Connect() behavior and reduces allocations.
Added
- A usage of sync.Pool of msgpack.Decoder saves 2 object allocations per a response decoding.
Changed
- Connect() now retry the connection if a failure occurs and opts.Reconnect > 0. The number of attempts is equal to opts.MaxReconnects or unlimited if opts.MaxReconnects == 0. Connect() blocks until a connection is established, the context is cancelled, or the number of attempts is exhausted (#436).