tun2: set deadline before creating stream
This commit is contained in:
parent
bbf0dc14ba
commit
9758adc118
|
@ -158,6 +158,8 @@ func (s *Server) ListenAndServe() error {
|
||||||
s.connlock.Lock()
|
s.connlock.Lock()
|
||||||
|
|
||||||
for _, c := range s.conns {
|
for _, c := range s.conns {
|
||||||
|
c.session.SetDeadline(time.Now().Add(time.Second))
|
||||||
|
|
||||||
req, err := http.NewRequest("GET", "http://backend/health", nil)
|
req, err := http.NewRequest("GET", "http://backend/health", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in New Issue