Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

235832289
Copy link
Contributor

@235832289 235832289 commented Aug 6, 2018

The problem of long connection for more than 30 seconds and disconnection of the server
#770

@fatedier
Copy link
Owner

fatedier commented Aug 6, 2018

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
Copy link
Owner

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.

Copy link
Contributor Author

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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use lowercase letters.

Copy link
Contributor Author

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

@@ -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
Copy link
Owner

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.

Copy link
Contributor Author

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

@235832289 235832289 changed the title 修正长连超过30秒与服务器断开的问题 Fix the problem of long connection for more than 30 seconds and disconnection of the server Aug 7, 2018
@fatedier
Copy link
Owner

fatedier commented Aug 7, 2018

Please rebase all commit log into one without chinese.

@235832289 235832289 closed this Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants