Fix the problem of long connection for more than 30 seconds and disconnection of the server

This commit is contained in:
itcode
2018-08-08 10:52:08 +08:00
parent 629f2856b1
commit 9bb08396c7
4 changed files with 19 additions and 1 deletions

View File

@@ -25,13 +25,14 @@ import (
"sync"
"time"
"github.com/fatedier/frp/g"
frpLog "github.com/fatedier/frp/utils/log"
"github.com/fatedier/golib/pool"
)
var (
responseHeaderTimeout = time.Duration(30) * time.Second
responseHeaderTimeout = time.Duration(g.GlbServerCfg.VhostHttpTimeout) * time.Second
ErrRouterConfigConflict = errors.New("router config conflict")
ErrNoDomain = errors.New("no such domain")