Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-316

DefaultSshFuture waits for ever

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.1
    • 0.12.0
    • None

    Description

      the code for DefaultSshFuture.await0(long timeoutMillis, boolean interruptable) may wait forever.

      This happens when curTime == endTime in the main loop.
      The loop will not break since it checks: curTime > endTime
      and it will re-enter the main loop and call wait(0).

      see:
      http://www.javamex.com/tutorials/synchronization_wait_notify_3.shtml

      I believe we should change the code DefaultSshFuture:143 to:
      curTime >= endTime

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            haim_indeni Haim Sh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: