From 2176a80bcfc860a49e8d76e9b2c0a66f71303a43 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 9 Apr 2009 19:46:14 +0000 Subject: * Terminate OpenSim startup if we cannot listen to the designated HTTP port * This makes the problem much more obvious to the user, and OpenSim isn't that useful without inbound http anyway --- OpenSim/Framework/Servers/BaseHttpServer.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 3f3b1b8..fc2d36a 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -1424,8 +1424,12 @@ namespace OpenSim.Framework.Servers } catch (Exception e) { - m_log.Warn("[HTTPD]: Error - " + e.Message); - m_log.Warn("Tip: Do you have permission to listen on port " + m_port + "," + m_sslport + "?"); + m_log.Error("[HTTPD]: Error - " + e.Message); + m_log.Error("[HTTPD]: Tip: Do you have permission to listen on port " + m_port + ", " + m_sslport + "?"); + + // We want this exception to halt the entire server since in current configurations we aren't too + // useful without inbound HTTP. + throw e; } } -- cgit v1.1