summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst-rsrc/org/eclipse
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2020-08-08 11:53:43 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2020-08-10 22:51:34 +0200
commit72b111ecd7ddd5fb980767e87ff5515c05a48dbc (patch)
treeb9e6b8e0f55210bfc2ddff7431ff46c59f18cbc8 /org.eclipse.jgit.test/tst-rsrc/org/eclipse
parent24fdc1d039dd075a54d0db36b63bf8aba4919068 (diff)
downloadjgit-72b111ecd7ddd5fb980767e87ff5515c05a48dbc.tar.gz
jgit-72b111ecd7ddd5fb980767e87ff5515c05a48dbc.zip
Update javadoc for RemoteSession and SshSessionFactory
The timeout on RemoteSession.exec() cannot be a timeout for the whole command. It can only be a timeout for setting up the process; after that it's the application's responsibility to implement some timeout for the execution of the command, for instance by calling Process.waitFor(int, TimeUnit) or through other means. Sessions returned by an SshSessionFactory are already connected and authenticated -- they must be, because RemoteSession offers no operations for connecting or authenticating a session. Change the implementation of SshdExecProcess.waitFor() to wait indefinitely. The original implementation used the timeout from RemoteSession.exec() because of that erroneous javadoc. Change-Id: I3c7ede24ab66d4c81f72d178ce5012d383cd826e Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/tst-rsrc/org/eclipse')
0 files changed, 0 insertions, 0 deletions