From 55f3db77f03549de4b023f237b62fb262064df4f Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Tue, 1 Jun 2021 19:07:47 +0000
Subject: [PATCH] Add a warning when windowSize is not set

---
 connect/host.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/connect/host.go b/connect/host.go
index a76f50e..ca134aa 100644
--- a/connect/host.go
+++ b/connect/host.go
@@ -404,8 +404,10 @@ func (h *Host) connectHelper() (err error) {
 		if windowSize != 0 {
 			dialOpts = append(dialOpts, grpc.WithInitialWindowSize(windowSize))
 			dialOpts = append(dialOpts, grpc.WithInitialConnWindowSize(windowSize))
+		} else {
+			jww.WARN.Printf("WindowSize not set, this can " +
+				"cause network performance issues")
 		}
-
 		// Create the connection
 		h.connection, err = grpc.DialContext(ctx, h.GetAddress(),
 			dialOpts...)
-- 
GitLab