Commons Dbcp
  1. Commons Dbcp
  2. DBCP-263

Use a queryTimeout for the validationQuery in PoolableConnectionFactory

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.2, 1.2.1, 1.2.2
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      PoolableConnectionFactory.validateConnection(Connection conn) should use java.sql.Statement.setQueryTimeout(int) to avoid network problems and inappropriate validation queries. The timeout should either be a sensible default (say 5 secs) or be configurable.

      Links:

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Christoph Grothaus
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development