Skip to content

ADO.NET: DbConnection.ConnectionTimeout not overridden #137

@DaveRMaltby

Description

@DaveRMaltby

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:

  1. Return a configurable timeout value
  2. Add a Connection Timeout keyword to the connection string builders
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferredDeferred — not addressing now

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions