From b3349ddfec8c2ea5b1211ea98ff8ec318b71358c Mon Sep 17 00:00:00 2001 From: Chris Simons Date: Tue, 5 May 2020 16:19:22 -0700 Subject: [PATCH] Elevate XSocketAddressInUse to ERROR Errors where the socket address is in use will keep the server from connecting with clients. This should be reported as an ERROR instead of a warning. Also, if the retry time is shorter issues will be more obvious, since the error will cause the log to scroll visibly. --- src/lib/barrier/ServerApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/barrier/ServerApp.cpp b/src/lib/barrier/ServerApp.cpp index c1cb962d..b832827e 100644 --- a/src/lib/barrier/ServerApp.cpp +++ b/src/lib/barrier/ServerApp.cpp @@ -560,10 +560,10 @@ ServerApp::startServer() return true; } catch (XSocketAddressInUse& e) { - LOG((CLOG_WARN "cannot listen for clients: %s", e.what())); + LOG((CLOG_ERR "cannot listen for clients: %s", e.what())); closeClientListener(listener); updateStatus(String("cannot listen for clients: ") + e.what()); - retryTime = 10.0; + retryTime = 1.0; } catch (XBase& e) { LOG((CLOG_CRIT "failed to start server: %s", e.what()));