Skip to content

Commit

Permalink
Added tls handshake timeout and don't keep connections alive closes #…
Browse files Browse the repository at this point in the history
…2614
  • Loading branch information
myleshorton committed Jun 7, 2015
1 parent 95eff89 commit 40705a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/github.com/getlantern/fronted/dialer.go
Expand Up @@ -16,6 +16,7 @@ import (
"time"

"encoding/asn1"

"github.com/getlantern/connpool"
"github.com/getlantern/enproxy"
"github.com/getlantern/golog"
Expand Down Expand Up @@ -229,6 +230,8 @@ func (d *dialer) NewDirectDomainFronter() *http.Client {
log.Debugf("Dialing %s with direct domain fronter", addr)
return d.dialServer()
},
TLSHandshakeTimeout: 40 * time.Second,
DisableKeepAlives: true,
},
},
}
Expand Down

0 comments on commit 40705a1

Please sign in to comment.