aboutsummaryrefslogtreecommitdiffstats
path: root/filedistribution/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-09-30 19:17:51 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-09-30 19:17:51 +0000
commit9a111f7ee9a49ffb1a2359d15cdd4b65e2d4c7ea (patch)
treeaa45224ddaa0a6b6a177c562284e909b763159fa /filedistribution/src
parent6f3df5feeed51e6414db74c22e489134775eacab (diff)
Catch and exit quickly on port listen failure.
Diffstat (limited to 'filedistribution/src')
-rw-r--r--filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp b/filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp
index 8c2bda6321c..38080e5239c 100644
--- a/filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp
+++ b/filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp
@@ -399,6 +399,9 @@ void FileDownloader::runEventLoop() {
}
} catch (const ZKConnectionLossException & e) {
LOG(info, "Connection loss in downloader event loop, resuming. %s", e.what());
+ } catch (const vespalib::PortListenException & e) {
+ LOG(error, "Failed listening to torrent port : %s", e.what());
+ std::quick_exit(21);
}
}
drain();