Skip to content

Commit

Permalink
Elevate XSocketAddressInUse to ERROR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
simons-public committed May 6, 2020
1 parent 675a17d commit b3349dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/barrier/ServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit b3349dd

Please sign in to comment.