From 1b42fe01fcfad8d49c252e8afb81ff6092c41725 Mon Sep 17 00:00:00 2001
From: a <a@a.a>
Date: Thu, 8 Sep 2022 09:47:29 -0500
Subject: [PATCH] Reset buf on tls

---
 lib/gat/gatling/client/client.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/gat/gatling/client/client.go b/lib/gat/gatling/client/client.go
index f49e60fa..d58bbd76 100644
--- a/lib/gat/gatling/client/client.go
+++ b/lib/gat/gatling/client/client.go
@@ -123,6 +123,7 @@ func (c *Client) Accept(ctx context.Context) error {
 			c.conn = tls.Server(c.conn, cfg)
 			c.r = bufio.NewReader(c.conn)
 			c.wr = c.conn
+			c.bufwr.Reset(c.wr)
 			err = startup.Read(c.r)
 			if err != nil {
 				return err
-- 
GitLab