Skip to content
Snippets Groups Projects
Commit ecb22e4b authored by Shawn Pearce's avatar Shawn Pearce Committed by Code Review
Browse files

Merge "Don't doubly wrap TransportException in smart HTTP client"

parents 19126f70 dd931bd9
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright (C) 2009-2010, Google Inc. * Copyright (C) 2008-2010, Google Inc.
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* and other copyright owners as documented in the project's IP log. * and other copyright owners as documented in the project's IP log.
* *
...@@ -572,12 +572,7 @@ class SmartHttpFetchConnection extends BasePackFetchConnection { ...@@ -572,12 +572,7 @@ class SmartHttpFetchConnection extends BasePackFetchConnection {
init(advertisement, DisabledOutputStream.INSTANCE); init(advertisement, DisabledOutputStream.INSTANCE);
outNeedsEnd = false; outNeedsEnd = false;
try {
readAdvertisedRefs(); readAdvertisedRefs();
} catch (IOException err) {
close();
throw new TransportException(uri, "remote hung up", err);
}
} }
@Override @Override
...@@ -598,12 +593,7 @@ class SmartHttpPushConnection extends BasePackPushConnection { ...@@ -598,12 +593,7 @@ class SmartHttpPushConnection extends BasePackPushConnection {
init(advertisement, DisabledOutputStream.INSTANCE); init(advertisement, DisabledOutputStream.INSTANCE);
outNeedsEnd = false; outNeedsEnd = false;
try {
readAdvertisedRefs(); readAdvertisedRefs();
} catch (IOException err) {
close();
throw new TransportException(uri, "remote hung up", err);
}
} }
protected void doPush(final ProgressMonitor monitor, protected void doPush(final ProgressMonitor monitor,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment