diff --git a/internal/tun2/connection.go b/internal/tun2/connection.go index b68cfe4..40f7c4d 100644 --- a/internal/tun2/connection.go +++ b/internal/tun2/connection.go @@ -127,6 +127,12 @@ 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())