Reset the buffer on close
This commit is contained in:
parent
b1b316df77
commit
9697dc503c
@ -95,6 +95,7 @@ func (h *httpTransportClient) Recv(m *Message) error {
|
||||
}
|
||||
|
||||
func (h *httpTransportClient) Close() error {
|
||||
h.buff.Reset(nil)
|
||||
return h.conn.Close()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user