Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-493

FTPClient: Slow data transfer rate if __bufferSize != 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.2
    • None
    • FTP
    • Windows 7 32bit / Windows XP 32bit

    Description

      The patch applied in NET-465 causes a very slow data transfer rate. The line

      850: socket.setSendBufferSize(__bufferSize)

      in

      _openDataConnection_

      sets the buffer size to 1024 by default. With this size I had a very bad transfer rate on windows 7 and XP. The wireshark log shows that each FTP-DATA packet is exactly 1024 bytes long and has to be acknowledged on the TCP layer before the next one is sent. I don't know why, but when I set the buffer size to 0 (FTPClient.setBufferSize) the transfer rate is fine.

      Attachments

        1. screenshot-1.jpg
          260 kB
          Mico Micic
        2. screenshot-2.jpg
          260 kB
          Mico Micic

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mic_mim Mico Micic
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: