FtpServer
  1. FtpServer
  2. FTPSERVER-197

start() and stop() methods in FtpServer class can fail to unbind ports.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M1, 1.0.0-M2, 1.0.0-M3
    • Fix Version/s: 1.0.0-M4
    • Component/s: None
    • Labels:
      None

      Description

      *start() method in FtpServer class tries to start() all the listeners one by one and it sets started=true if all of them succeeded.
      If one of the listeners throws an exception when starting but some others succeded , it will not close the open listeners. Calling stop() won't have any effect in this case as 'started' is false.

      *stop() method in FtpServer class returns normally when e.g., there are open connections to the FtpServer but the server is not really stopped. Calling stop() again later won't have any effect as 'started' is false.

      I'm quite concerned about the fact that calling stop() won't stop the server since this means that when I undeploy my webapplication the port is still open and I need to restart the whole application server in order to have this port available (and prevent memory leaks!, I guess).

        Activity

        Niklas Gustavsson made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Niklas Gustavsson [ niklas ]
        Fix Version/s 1.0-M4 [ 12313395 ]
        Resolution Fixed [ 1 ]
        David Latorre made changes -
        Field Original Value New Value
        Affects Version/s 1.0-M3 [ 12313104 ]
        Affects Version/s 1.0-M2 [ 12312320 ]
        Affects Version/s 1.0-M1 [ 12312282 ]
        David Latorre created issue -

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            David Latorre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development