Releases: nats-io/nats.go
Releases · nats-io/nats.go
Release v1.3.0
Changelog
Added
FlusherTimeout
option to limit the time the flusher can block (#252)DiscoveredServersCB
connection handler invoked when a server joins the cluster (#282)- context.Context support with new APIs:
RequestWithContext
,NextMsgWithContext
(#275) GetDefaultOptions()
produces new default Options. Should be used instead of DefaultOptions. Thanks to @nogoegst (#308)
Improved
- Performance when connection publishes to itself and reduces risk of getting slow consumer (#285)
- Less chatty request protocol (#295, #299)
- Use of pool for timers in Request/NextMsg/FlushTimeout calls (#297)
Changed
- Repo name (now go-nats) (#239)
- Authorization errors now trigger the async error callback and do not close the connection (#300)
Fixed
- Server pool shuffling when adding new URLs when servers join the cluster (#260)
- Very rare panic in WaitGroup.Wait() (#268)
- Locking in handling permission violation error from server (#289)
Deprecated
DefaultOptions
. You should useGetDefaultOptions()
instead. See #308
Complete Changes
Release v1.2.2
Changelog
Added
- Support for cluster auto-discovery with servers v0.9.4+
Conn.IsConnected
method to verify if client is connectedConn.DiscoveredServers
to get the list of servers discovered after initial connect
to server part of a cluster (with servers v0.9.4+)- Custom Dialers for
nats.Connect()
staticcheck
in Travis build
Updated
- README’s Clustered Usage section
- Travis build with
go 1.7.3
Removed
- Travis build with
go 1.5
Fixed
- Use default connect timeout in
opts.Connect()
if none is specified - Chan subscribers could not receive more than 65536 messages
- Allow message size of 0 in
examples/nats-bench.go
- Ensure message count is greater than 0 in
examples/nats-bench.go
- If
Options.Url
is set, ensure it is tried first on initial connect - Data race with
Conn.LastError()
- Warning from
go 1.7.3
with TLS config copy