Improve stream processing

This commit is contained in:
Asim Aslam
2019-08-25 19:30:22 +01:00
parent 6128d18ee0
commit 36623bfe50
3 changed files with 41 additions and 28 deletions

View File

@@ -324,6 +324,9 @@ func (h *httpTransportSocket) Send(m *Message) error {
// write request
_, err := h.w.Write(m.Body)
// flush the trailers
h.w.(http.Flusher).Flush()
return err
}