Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6167

Interrupt restarts clock for login timeout

    XMLWordPrintableJSON

Details

    • Normal
    • Repro attached

    Description

      If a login takes time, and the thread that's blocked in Driver20.timeLogin() is interrupted, it will call Future.get() again with the same timeout value. This means that interrupting a getConnection() call will not make it terminate faster, as one might expect. Instead, it restarts the timeout clock and makes it terminate later than if it had not been interrupted.

      Attachments

        1. derby-6167-1a.diff
          2 kB
          Knut Anders Hatlen
        2. InterruptDuringConnect.java
          2 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: