From 3fefd316254b9c0ad4b3bce2b43e4b7cb6923989 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 1 Oct 2017 08:55:46 -0700 Subject: [PATCH] tun2: lol nope --- internal/tun2/connection.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/tun2/connection.go b/internal/tun2/connection.go index 4d16d4d..ae2d646 100644 --- a/internal/tun2/connection.go +++ b/internal/tun2/connection.go @@ -125,10 +125,7 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) { if err != nil { return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error()) } - defer func() { - time.Sleep(5 * time.Minute) - stream.Close() - }() + defer stream.Close() err = req.Write(stream) if err != nil {