Do not log timeout errors on upload and receive connections
The Upload and Receive SSH commands were turning InterruptedIOExceptions into Failures which get logged by BaseCommand. Instead, let the InterruptedIOExceptions trickle up and die quietly in BaseCommand where they are captured. Change-Id: I8e9dcde9f2eb616b3ab3130bbbbd218b062d4be8
This commit is contained in:

committed by
Shawn O. Pearce

parent
e0d44f8e14
commit
4c7f920816
@@ -29,7 +29,6 @@ import org.eclipse.jgit.transport.RefFilter;
|
||||
import org.kohsuke.args4j.Option;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
@@ -88,9 +87,6 @@ final class Receive extends AbstractGitCommand {
|
||||
try {
|
||||
receive.advertiseHistory();
|
||||
rp.receive(in, out, err);
|
||||
} catch (InterruptedIOException err) {
|
||||
throw new Failure(128, "fatal: client IO read/write timeout", err);
|
||||
|
||||
} catch (UnpackException badStream) {
|
||||
// This may have been triggered by branch level access controls.
|
||||
// Log what the heck is going on, as detailed as we can.
|
||||
|
Reference in New Issue
Block a user