From 8e94968e172bf07e1456f49c2def662c9932c6ad Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 7 Oct 2017 08:42:13 -0700 Subject: [PATCH] Revert "tun2: close http streams after 30 minutes" This reverts commit 30f7f4636ec8312b8f14fa6c7de9257614fc2484. --- internal/tun2/connection.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/tun2/connection.go b/internal/tun2/connection.go index 40f7c4d..b68cfe4 100644 --- a/internal/tun2/connection.go +++ b/internal/tun2/connection.go @@ -127,12 +127,6 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) { return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error()) } - go func() { - time.Sleep(30 * time.Minute) - - stream.Close() - }() - err = req.Write(stream) if err != nil { return nil, errors.Wrap(err, ErrCantWriteRequest.Error())