Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-325

Allow idle connection count to exceed maxIdle for configurable time period

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • None
    • 2.0

    Description

      It would be nice to have a timeout that specifies how long a connection, on which close() has been called, should be held in the pool, even if this connection exceeds the maxIdle limit. This would make it possible to say something like "I know this is one more idle connection than I configured but keep it around for just a few more seconds in case we have a second peak so we donĀ“t need to construct the connection again".

      If this has a chance of getting into the pool, I would try to provide a patch that implements this so that, in best case, you only would have to do a code review.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pkranz Patrick Kranz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: