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

Connection statistics not updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M4
    • 1.0.0-RC1
    • Core
    • None

    Description

      Methods

      org.apache.ftpserver.impl.ServerFtpStatistics#setOpenConnection(FtpIoSession)
      org.apache.ftpserver.impl.ServerFtpStatistics#setCloseConnection(FtpIoSession)

      are never called from production code.

      Command SITE_STAT shows only zeros for connection statistics.

      Really, really side note: I have looked at DefaultFtpStatistics class. The counters are AtomicIntegers. As all counters are modified inside synchronized methods, I don't think there is any need for the counters to be AtomicInteger at all. Just int should be enough.

      Attachments

        Activity

          People

            niklas Niklas Therning
            kuhn Jiri Kuhn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: