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

Command timeout always set to 30 seconds even if the connection timeout is larger. #37

Closed
jluginbill opened this issue Jun 1, 2011 · 1 comment

Comments

@jluginbill
Copy link

The command timeout is always set to 30 seconds and there is no way to override this nor does it take the connection timeout into consideration Need to explicity set the cmd.CommandTimeout on the command object in the CreateCommand method with eiher a property or the connection timeout. This would allow for long running queries across a large database. I noticed when trying to delete 25,000 records it takes about 45 seconds to run but the petapoco timeout at 30 seconds because of the command object.

@toptensoftware
Copy link
Collaborator

Fixed in latest master branch - two new properties CommandTimeout and OneTimeCommandTimeout.

Leave both at zero for default time outs.
Set CommandTimeout to control the default timeout for all queries.
Set OneTimeCommandTimeout to control the timeout of just the next query.

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

No branches or pull requests

2 participants