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 is0.ServerOptions.EtcdClientTimeout()andClientOptions.EtcdClientTimeout()configure the timeout duration for etcd client operations. Default is5s.ServerOptions.EtcdLeaseTimeout()sets the Time-To-Live (TTL) duration for the etcd lease. Default is5s.
Changed (Breaking API Updates)
(*RPCPlatform).NewClient()and(*Server).Serve()now requirecontext.Contextfor proper lifecycle and cancellation management.