mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: allow DNS disconnection events to happen in k8s (#19145)
in k8s things really do come online very asynchronously, we need to use implementation that allows this randomness. To facilitate this move WriteAll() as part of the websocket layer instead. Bonus: avoid instances of dnscache usage on k8s
This commit is contained in:
@@ -174,7 +174,7 @@ func (c ContextDialer) DialContext(ctx context.Context, network, address string)
|
||||
}
|
||||
|
||||
const (
|
||||
defaultOutQueue = 10000
|
||||
defaultOutQueue = 65535 // kind of close to max open fds per user
|
||||
readBufferSize = 32 << 10 // 32 KiB is the most optimal on Linux
|
||||
writeBufferSize = 32 << 10 // 32 KiB is the most optimal on Linux
|
||||
defaultDialTimeout = 2 * time.Second
|
||||
|
||||
Reference in New Issue
Block a user