summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/src/org
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2020-05-13 20:06:23 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2020-05-23 11:06:10 +0200
commitbdb7357228c6611cea2d266255c7751bd9ed368e (patch)
treea347be6bdff88f815f0ce80d56b22d07994c138e /org.eclipse.jgit.test/src/org
parente2f82d8a7bc8d6779ef676cde175004107b92568 (diff)
downloadjgit-bdb7357228c6611cea2d266255c7751bd9ed368e.tar.gz
jgit-bdb7357228c6611cea2d266255c7751bd9ed368e.zip
TransportHttp: abort on time-out or on SocketException
Avoid trying other authentication methods on SocketException or on InterruptedIOException. SocketException is rather fatal, such as nothing listening on the peer's port, connection reset, or it could be a connection time-out. Time-outs enforced by Timeout{Input,Output}Stream may result in InterruptedIOException being thrown. In both cases, it makes no sense to try other authentication methods, and doing so may wrongly report "authentication not supported" or "cannot open git-upload-pack" or some such instead of reporting a time-out. Bug: 563138 Change-Id: I0191b1e784c2471035e550205abd06ec9934fd00 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.test/src/org')
0 files changed, 0 insertions, 0 deletions