Skip to content

v2.3.1

Latest
Compare
Choose a tag to compare
@oleg-jukovec oleg-jukovec released this 03 Apr 11:00
· 1 commit to master since this release

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).