diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-30 19:17:51 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-30 19:17:51 +0000 |
commit | 9a111f7ee9a49ffb1a2359d15cdd4b65e2d4c7ea (patch) | |
tree | aa45224ddaa0a6b6a177c562284e909b763159fa /filedistribution | |
parent | 6f3df5feeed51e6414db74c22e489134775eacab (diff) |
Catch and exit quickly on port listen failure.
Diffstat (limited to 'filedistribution')
-rw-r--r-- | filedistribution/src/vespa/filedistribution/distributor/filedownloader.cpp | 3 |
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(); |