Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SFTP Parallel Downloads again

$
0
0

Hey guys,

  I have been seeing sporadic instances of the following exception: "Session operation has timed out" on the connect command.

If (sPrivateKeyFile.Length > 0) ThenDim pk = New PrivateKeyFile(System.IO.File.OpenRead(PrivateKeyFolder() & sPrivateKeyFile), sPassPhraseOrPW)
            conn = New PrivateKeyConnectionInfo(sHost, iPort, sUserID, pk)Else
            conn = New PasswordConnectionInfo(sHost, iPort, sUserID, sPassPhraseOrPW)EndIfDim sf = New SftpClient(conn)
        sf.Connect()
I am using the 3.5 version that I believe was built on last Saturday. This is being used in a threaded service, however the most recent error occured when only one thread was processing, so I do not believe it is a thread specific problem.
Other info- this is a private key / passphrase type connection.
I thought I would mention this just in case it is related to the problems being encountered by the original poster.
The problem is very inconsistent. I can reset a failed attempt (try again using the same code/process) and it will work.
Thanks, Mike
edit- the code frame on this panel is hacking up the appearance of this post...

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>