Summary
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.
Standard Reference
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