You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DbConnection.ConnectionTimeout is a virtual property (defaults to 15 seconds) that is not overridden in FileConnection. For file-based providers, connection timeout should reflect the time allowed to open/parse a file.
What's Needed
Override ConnectionTimeout in FileConnection to:
Return a configurable timeout value
Add a Connection Timeout keyword to the connection string builders
Actually enforce the timeout during Open() (e.g., cancel file parsing if it exceeds the timeout)
Current Behavior
Returns the default 15 seconds from the base class, but this value is never checked or enforced during file operations.
Summary
DbConnection.ConnectionTimeoutis a virtual property (defaults to 15 seconds) that is not overridden inFileConnection. For file-based providers, connection timeout should reflect the time allowed to open/parse a file.What's Needed
Override
ConnectionTimeoutinFileConnectionto:Connection Timeoutkeyword to the connection string buildersOpen()(e.g., cancel file parsing if it exceeds the timeout)Current Behavior
Returns the default 15 seconds from the base class, but this value is never checked or enforced during file operations.
Standard Reference