Skip to content
Snippets Groups Projects
Commit 2e961989 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

Fix SSH deadlock during OutOfMemoryError


In close() method of SshFetchConnection and SshPushConnection
errorThread.join() can wait forever if JSch will not close the
channel's error stream.  Join with a timeout, and interrupt the
copy thread if its blocked on data that will never arrive.

Bug: 312863
Change-Id: I763081267653153eed9cd7763a015059338c2df8
Reported-by: default avatarDmitry Neverov <dmitry.neverov@gmail.com>
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent b3247ba5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment