-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the problem of long connection for more than 30 seconds and disconnection of the server #879
Conversation
You'd better not use chinese in commit log, it's not friendly for others. |
cmd/frps/root.go
Outdated
allowPorts string | ||
maxPoolCount int64 | ||
maxPortsPerClient int64 | ||
ResponseHeaderTimeout int64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use lowercase letter at the beginning and the word ResponseHeaderTimeout
is not clear for others to figure out where it's used.
vhost_http_timeout
is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've changed it
cmd/frps/root.go
Outdated
@@ -85,6 +86,7 @@ func init() { | |||
rootCmd.PersistentFlags().Int64VarP(&authTimeout, "auth_timeout", "", 900, "auth timeout") | |||
rootCmd.PersistentFlags().StringVarP(&subDomainHost, "subdomain_host", "", "", "subdomain host") | |||
rootCmd.PersistentFlags().Int64VarP(&maxPortsPerClient, "max_ports_per_client", "", 0, "max ports per client") | |||
rootCmd.PersistentFlags().Int64VarP(&ResponseHeaderTimeout, "Response_Header_Timeout", "", 30, "Response Header Timeout") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use lowercase letters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've changed it
conf/frps_full.ini
Outdated
@@ -66,3 +66,6 @@ subdomain_host = frps.com | |||
|
|||
# if tcp stream multiplexing is used, default is true | |||
tcp_mux = true | |||
|
|||
# if Response Header Timeout more the 30s ,fix the pars . | |||
ResponseHeaderTimeout = 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use lowercase letters and underline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've changed it
… and Use lowercase letter at the beginning
Please rebase all commit log into one without chinese. |
The problem of long connection for more than 30 seconds and disconnection of the server
#770