- Do not report that the server has been started
-with Ada.Text_IO;
-
with AWS.Config;
with AWS.Config.Set;
with AWS.Server;
AWS.Config.Set.Session_Lifetime(1800.0);
AWS.Config.Set.Session_Cleanup_Interval(3600.0);
- Ada.Text_IO.Put_Line("Starting server...");
AWS.Server.Start(Web_Server => Web_Server,
Dispatcher => Handlers.Get_Dispatchers,
Config => Server_Config);
- AWS.Server.Wait(AWS.Server.Q_Key_Pressed);
+ AWS.Server.Wait(AWS.Server.Forever);
AWS.Server.Shutdown(Web_Server);
end Nine_Q;