I am using a trial version of the FTP/SSL component for dot net. when authenticating to an FTP server, there is a 30-35 second delay. I am using the WinForms client for testing. I see this delay even if I change the certificate verifier to Rebex.Net.CertificateVerifier.AcceptAll.
If I disconnect and then immediately re-connect, there is no delay. What is the delay, and how do I prevent it?
*** EDITED: this is the debug-level log for a connection to ftp.rebex.net:
18:53:33.603 Info Info: Connecting to ftp.rebex.net:21 using Ftp 3.0.3588.0 (trial version).
18:53:33.618 Info Info: Using proxy none.
18:53:34.806 Debug Info: Connection succeeded.
18:53:34.993 Info Response: 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
18:53:35.040 Info Command: AUTH TLS
18:53:35.212 Info Response: 234 AUTH command ok; starting SSL connection.
18:53:35.228 Debug Info: Upgrading control connection to TLS/SSL.
18:53:35.337 Info TLS: State StateChange:Negotiating
18:53:35.353 Debug TLS: HandshakeMessage:ClientHello was sent.
18:53:35.556 Debug TLS: HandshakeMessage:ServerHello was received.
18:53:35.571 Debug TLS: HandshakeMessage:Certificate was received.
18:53:35.587 Debug TLS: HandshakeMessage:ServerHelloDone was received.
18:53:35.587 Debug TLS: Verifying server certificate ('L=PRAHA, S=-, C=CZ, CN=REBEX CA, Efirstname.lastname@example.org, O=REBEX CR s.r.o., OU=-').
18:53:35.603 Debug TLS: Certificate verification result: Accept
18:53:35.603 Debug TLS: HandshakeMessage:ClientKeyExchange was sent.
18:54:14.447 Debug TLS: CipherSpec:ChangeCipherSpec was sent.
18:54:14.462 Debug TLS: HandshakeMessage:Finished was sent.
18:54:14.666 Debug TLS: CipherSpec:ChangeCipherSpec was received.
18:54:14.681 Debug TLS: HandshakeMessage:Finished was received.
18:54:14.697 Info TLS: State StateChange:Secured
18:54:14.712 Info TLS: Connection secured using cipher: TLS 1.0, RSA, 128bit AES in CBC mode, SHA1
18:54:14.728 Info TLS: Session ID: SnnPVCPhhpa2FW1awNZNFXrP/0+egNyWepQWdloDlTo
18:54:14.744 Debug Info: Control connection upgraded to TLS/SSL.