Reset the buffer on close

This commit is contained in:
Asim 2015-10-22 14:21:57 +01:00
parent b1b316df77
commit 9697dc503c

View File

@ -95,6 +95,7 @@ func (h *httpTransportClient) Recv(m *Message) error {
}
func (h *httpTransportClient) Close() error {
h.buff.Reset(nil)
return h.conn.Close()
}