Skip to content

Commit

Permalink
Merge pull request #2615 from getlantern/issue2614
Browse files Browse the repository at this point in the history
Add tls handshake timeout and don't keep connections alive closes #2614
  • Loading branch information
xiam committed Jun 8, 2015
2 parents 95eff89 + 40705a1 commit 421967c
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 421967c

Please sign in to comment.