Revert "tun2: close http streams after 30 minutes"

This reverts commit 30f7f4636e.
This commit is contained in:
Cadey Ratio 2017-10-07 08:42:13 -07:00
parent 302479389f
commit 8e94968e17
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 0 additions and 6 deletions

View File

@ -127,12 +127,6 @@ func (c *Connection) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error()) return nil, errors.Wrap(err, ErrCantOpenSessionStream.Error())
} }
go func() {
time.Sleep(30 * time.Minute)
stream.Close()
}()
err = req.Write(stream) err = req.Write(stream)
if err != nil { if err != nil {
return nil, errors.Wrap(err, ErrCantWriteRequest.Error()) return nil, errors.Wrap(err, ErrCantWriteRequest.Error())