tun2: set deadline before creating stream

This commit is contained in:
Cadey Ratio 2017-03-26 16:25:12 -07:00
parent bbf0dc14ba
commit 9758adc118
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ func (s *Server) ListenAndServe() error {
s.connlock.Lock()
for _, c := range s.conns {
c.session.SetDeadline(time.Now().Add(time.Second))
req, err := http.NewRequest("GET", "http://backend/health", nil)
if err != nil {
panic(err)