You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release introduces new configuration options and updates APIs to support context cancellation.
Added Options
ServerOptions.StopTimeout() determines the server's shutdown behavior when its context is canceled. If greater than zero, a graceful stop is applied; otherwise, it stops immediately. Default is 0.
ServerOptions.EtcdClientTimeout() and ClientOptions.EtcdClientTimeout() configure the timeout duration for etcd client operations. Default is 5s.
ServerOptions.EtcdLeaseTimeout() sets the Time-To-Live (TTL) duration for the etcd lease. Default is 5s.
Changed (Breaking API Updates)
(*RPCPlatform).NewClient() and (*Server).Serve() now require context.Context for proper lifecycle and cancellation management.
Breaking changes to the API (all examples updated) and other internal improvements. A new Lookup method has been added that allows you to get attributes of running servers by name.