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

New Post: SFTP parallel downloads with one connection - Exception (not threadsafe?)

$
0
0

ok tested a bit more.

 

If everything is fine then:

this._socket.Poll(1, SelectMode.SelectRead) -> = true
this._socket.Available == 0 -> = false

 

But when the exception is thrown (because of massive parallel calling of IsSocketConnected) then

this._socket.Poll(1, SelectMode.SelectRead) -> = true (OK!)
this._socket.Available == 0 -> = true (NOT OK!)


Hope that helps!


Viewing all articles
Browse latest Browse all 1729

Trending Articles



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