1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

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()
}