-
Notifications
You must be signed in to change notification settings - Fork 264
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
Allow to configure server's read/write/idle timeouts #36
Conversation
README.md
Outdated
@@ -430,6 +430,19 @@ server: | |||
# By default requests are accepted from all the IPs. | |||
allowed_networks: ["office", "reporting-apps", "1.2.3.4"] | |||
|
|||
# ReadTimeout is the maximum duration for reading the entire | |||
# request, including the body. |
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.
Could you specify on which side this timeout is applied - on the chproxy client or on the clickhouse server? Probably, it would be better adding the corresponding prefix to these timeouts? For instance, client_read_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.
That's the good point! I was sure being a part of server.http
and/or server.https
section was clear enough. But adding a prefix to the properties names could be verbose a bit. I suggest to specify details in description instead. Do you agree?
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.
Yes
@@ -630,49 +630,6 @@ func TestNewTLSConfig(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestGetMaxResponseTime(t *testing.T) { |
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.
Could you add tests verifying config.TimeoutCfg
fields are correctly set for various input configs?
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.
Please, see update
#35