mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	集群服务设置增加自动读超时选项
This commit is contained in:
		@@ -9,6 +9,7 @@ func DefaultGlobalServerConfig() *GlobalServerConfig {
 | 
			
		||||
	config.HTTPAccessLog.EnableCookies = true
 | 
			
		||||
	config.Log.RecordServerError = false
 | 
			
		||||
	config.Performance.AutoWriteTimeout = true
 | 
			
		||||
	config.Performance.AutoReadTimeout = true
 | 
			
		||||
	return config
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -32,6 +33,7 @@ type GlobalServerConfig struct {
 | 
			
		||||
	Performance struct {
 | 
			
		||||
		Debug            bool `yaml:"debug" json:"debug"`                       // Debug模式
 | 
			
		||||
		AutoWriteTimeout bool `yaml:"autoWriteTimeout" json:"autoWriteTimeout"` // 是否自动写超时
 | 
			
		||||
		AutoReadTimeout  bool `yaml:"autoReadTimeout" json:"autoReadTimeout"`   // 是否自动读超时
 | 
			
		||||
	} `yaml:"performance" json:"performance"` // 性能
 | 
			
		||||
 | 
			
		||||
	Log struct {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user