TUN-828: Added Connection: keep-alive header

This commit is contained in:
rishabh-bector 2018-07-30 09:23:55 -05:00
parent cefcb79b75
commit ac70c15248
1 changed files with 3 additions and 0 deletions

View File

@ -545,6 +545,9 @@ func (h *TunnelHandler) ServeStream(stream *h2mux.MuxedStream) error {
}
}
// Request origin to keep connection alive to improve performance
req.Header.Set("Connection", "keep-alive")
response, err := h.httpClient.RoundTrip(req)
if err != nil {