-
Notifications
You must be signed in to change notification settings - Fork 801
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
add RequestTimeout as option for RavenDB healthcheck #1707
Conversation
|
||
private class DatabaseHealthCheckCommand : RavenCommand | ||
{ | ||
public DatabaseHealthCheckCommand() | ||
{ | ||
Timeout = TimeSpan.FromSeconds(15); // maybe even less? |
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.
What is default timeout now?
{ | ||
_.Urls = _urls; | ||
_.Database = "Demo"; | ||
_.RequestTimeout = TimeSpan.Zero; |
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.
I would use some not-zero small value. Probably 0.5 seconds.
Needs fix from #1715. |
@schulz3000 Please rebase onto master so I can review/merge. |
Superseded by #1881. |
What this PR does / why we need it:
Possibility to set a timeout for RavenDB requests
Which issue(s) this PR fixes:
Make RavenDB request timeout configurable for Healthcheck
Please reference the issue this PR will close: #1558
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Please make sure you've completed the relevant tasks for this PR, out of the following list: