diff --git a/internal/tun2/connection.go b/internal/tun2/connection.go index ae2d646..4d16d4d 100644 --- a/internal/tun2/connection.go +++ b/internal/tun2/connection.go @@ -125,7 +125,10 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) { if err != nil { return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error()) } - defer stream.Close() + defer func() { + time.Sleep(5 * time.Minute) + stream.Close() + }() err = req.Write(stream) if err != nil {