1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
749 views
by satya-kiran-k-9137 (200 points)
While we are passing timeout/ConnectionTimeout as parameter in SFTP qie.writeSFTP how can we test whether the parameter is working in the function call?

1 Answer

0 votes
One way to verify that the connection timeout setting is working properly is to set it to a very short time (like 1 or 2 milliseconds) and verify that it terminates the connection.  Alternately, if you know the connection always takes, for example, 30 seconds to establish, you could set the timeout to 10 seconds (10000 milliseconds) and make sure that it terminates after that amount of time.
by jon-t-7005 (8.2k points)
...