Archived Forum Post

Index of archived forum posts

Question:

FTP passive Data Connection: existing connection was forcibly closed by the remote host (Windows Error Code 0x2746)

Sep 16 '14 at 11:51

The following error was encountered when trying to establish the FTP data connection in passive mode:

        convertDataConnToSsl:
          convertToTls:
            clientHandshake:
              clientHandshake2:
                WindowsError: An existing connection was forcibly closed by the remote host.
                WindowsErrorCode: 0x2746
                numBytesRequested: 5
                Failed to receive data on the TCP socket
                Failed to read beginning of SSL/TLS record.
                Failed to read incoming handshake messages. (1)
              --clientHandshake2
            --clientHandshake
            Client handshake failed. (1)
            connectionClosed: 0
          --convertToTls
          ConvertToTls: Elapsed time: 2996 millisec
          Failed to convert data connection to TLS
        --convertDataConnToSsl


Answer

In this case, the Chilkat customer was kind enough to share the cause of the problem (and the solution)

"we ended up finding the problem. It was on the FTP server’s end and (according to their IT person) had to do with their load balancer not using sticky sessions. I’m not a low-level network guy so I don’t know if that makes sense/sounds plausible to you, but the short of it is that it works now."