-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
RevEng: Command timeout should be configurable #22301
Comments
I would be interested in taking this if the scope is just a configurable timeout, if that's acceptable. |
@svengeance Sure, propose how a user would configure it |
Now, if only it was possible to change the default via the connection string! dotnet/SqlClient#614 |
I outlined this a bit in the issue that this one rose from, but I could implement this in one of a few ways. The easiest (well. ease-of-use wise) solution would be to introduce a new command line argument specifying a default timeout. This would then be carried forward from I had in my mind to attempt to bring in the same methodology of resolving DbContexts from Lastly, we could potentially extend Of these 3 proposals, did any of them align with your own ideas? None of them are breaking for existing users, and offer various levels of precedence, internal complexity, and ease-of-use. |
Keep in mind that the Timeout must be set on each command object. |
Triage: This should be implemented as a new command line argument consistent with the arguments we already have for other commands. @bricelam to provide details. |
In the meantime, I will try to implement this: dotnet/SqlClient#614 |
@bricelam Ping for command line argument name |
I'm with @ErikEJ on this one. No point adding an option if you can specify it in the connection string. |
PR well underway |
We discussed this and agreed that setting the command timeout in the connection string is the preferred way to add this functionality.
|
@ajcvickers Yes; the option is |
Is there a de-facto keyword name? I was going to use |
Looks like |
MySqlConnector also supports |
Looks like Oracle has Connect(ion) Timeout, but none for commands. |
@cincuranet Wanna join the party and add a |
Looks like IBM has |
@cincuranet This is about Command execution timeout, not about Connection timeout. |
See #22287
The text was updated successfully, but these errors were encountered: