Skip to content
Snippets Groups Projects
Commit 55f3db77 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Add a warning when windowSize is not set

parent 5931f64c
Branches
Tags
1 merge request!11Release
...@@ -404,8 +404,10 @@ func (h *Host) connectHelper() (err error) { ...@@ -404,8 +404,10 @@ func (h *Host) connectHelper() (err error) {
if windowSize != 0 { if windowSize != 0 {
dialOpts = append(dialOpts, grpc.WithInitialWindowSize(windowSize)) dialOpts = append(dialOpts, grpc.WithInitialWindowSize(windowSize))
dialOpts = append(dialOpts, grpc.WithInitialConnWindowSize(windowSize)) dialOpts = append(dialOpts, grpc.WithInitialConnWindowSize(windowSize))
} else {
jww.WARN.Printf("WindowSize not set, this can " +
"cause network performance issues")
} }
// Create the connection // Create the connection
h.connection, err = grpc.DialContext(ctx, h.GetAddress(), h.connection, err = grpc.DialContext(ctx, h.GetAddress(),
dialOpts...) dialOpts...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment