From 9697dc503c2800c1e0cfba616e90aeb1f9a1e37e Mon Sep 17 00:00:00 2001 From: Asim Date: Thu, 22 Oct 2015 14:21:57 +0100 Subject: [PATCH] Reset the buffer on close --- transport/http_transport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/http_transport.go b/transport/http_transport.go index 1c892b53..4825b197 100644 --- a/transport/http_transport.go +++ b/transport/http_transport.go @@ -95,6 +95,7 @@ func (h *httpTransportClient) Recv(m *Message) error { } func (h *httpTransportClient) Close() error { + h.buff.Reset(nil) return h.conn.Close() }