-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding timeouts to wait methods, to never allow for infinite wait() s…
…tate. (#198) * Adding timeouts to wait methods, to never allow for infinite thread wait. * Update StreamGobbler.java Add timeouts to StreamGobbler methods * Update ChannelManager.java Use existing DEFAULT_WAIT_TIMEOUT for timeout * Update TransportManager.java Add DEFAULT_WAIT_TIMEOUT, and use it for wait() calls * Update KexManager.java * Update FifoBuffer.java * Increase default timeout to 20min, to allow for temporary network issues. * Fix DM_BOXED_PRIMITIVE_FOR_PARSING
- Loading branch information
Showing
6 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently this specific change seems to be causing some SSH sessions, to timeout because of inactivity.
commands that worked without issues in our enviroment previously but no longer:
sleep 120s
the session will be terminated because of inactivity i guess as theres no data flowing.
but it working fine with:
asynchronousQueue.wait(2000);
but not with the new:
asynchronousQueue.wait(DEFAULT_WAIT_TIMEOUT);
notice the /* After the queue is empty for about 2 seconds, stop this thread */
is still left and i think it was a mistake to change this specific wait() with to a different timeout.