mirror of
https://github.com/minio/minio.git
synced 2025-10-30 00:05:02 -04:00
* Store `ctx.Done` channel in a struct instead of a `ctx`. See: https://go.dev/blog/context-and-structs * Return from `handleListener` on `ctx` cancellation, preventing goroutine leaks * Simplify `handleListener` by removing the `send` closure. The `handleListener` is inlined by the compiler * Return the first error from `Close` * Preallocate slice in `Addrs` * Reduce duplication in handling `opts.Trace` * http/listener: revert error propagation from Close() * http/listener: preserve original listener address in Addr() * Preserve the original address when calling Addr() with multiple listeners * Remove unused listeners from the slice