Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-208

calling resume() on listener does has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M3
    • 1.0.0-M4
    • Core
    • None
    • Windows XP, Sun 1.5.0 JVM

    Description

      Calling resume() method on the default NioListener after it has been suspended has no effect. Attempting to connect to the server results in connection refused messages to the client.

      I believe the problem is because the suspend() method does not set the suspended variable to true after the acceptor.unbind() call. This value is checked by the resume() method which only resumes the listener when the value is true.

      === copied from current svn HEAD ===

      public synchronized void suspend() {
      if (acceptor != null && !suspended)

      { acceptor.unbind(address); }

      }

      public synchronized void resume() {
      if (acceptor != null && suspended) {
      try

      { acceptor.bind(address); }

      catch (IOException e)

      { LOG.error("Failed to resume listener", e); }

      }
      }

      Attachments

        Activity

          People

            niklas Niklas Therning
            whitlabell Gary Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: