1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-07-13 20:17:08 +02:00

Update POCO library.

This commit is contained in:
Sandu Liviu Catalin
2023-03-23 20:19:11 +02:00
parent 8d15f4b6e9
commit 233fc103f9
2521 changed files with 257092 additions and 72789 deletions
+10 -10
View File
@@ -52,11 +52,11 @@ class TimeRequestHandler: public HTTPRequestHandler
/// Return a HTML document with the current date and time.
{
public:
TimeRequestHandler(const std::string& format):
TimeRequestHandler(const std::string& format):
_format(format)
{
}
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
{
Application& app = Application::instance();
@@ -75,7 +75,7 @@ public:
ostr << dt;
ostr << "</p></body></html>";
}
private:
std::string _format;
};
@@ -96,7 +96,7 @@ public:
else
return 0;
}
private:
std::string _format;
};
@@ -125,7 +125,7 @@ public:
HTTPTimeServer(): _helpRequested(false)
{
}
~HTTPTimeServer()
{
}
@@ -136,7 +136,7 @@ protected:
loadConfiguration(); // load default configuration files, if present
ServerApplication::initialize(self);
}
void uninitialize()
{
ServerApplication::uninitialize();
@@ -145,7 +145,7 @@ protected:
void defineOptions(OptionSet& options)
{
ServerApplication::defineOptions(options);
options.addOption(
Option("help", "h", "display help information on command line arguments")
.required(false)
@@ -183,11 +183,11 @@ protected:
int maxQueued = config().getInt("HTTPTimeServer.maxQueued", 100);
int maxThreads = config().getInt("HTTPTimeServer.maxThreads", 16);
ThreadPool::defaultPool().addCapacity(maxThreads);
HTTPServerParams* pParams = new HTTPServerParams;
pParams->setMaxQueued(maxQueued);
pParams->setMaxThreads(maxThreads);
// set-up a server socket
ServerSocket svs(port);
// set-up a HTTPServer instance
@@ -201,7 +201,7 @@ protected:
}
return Application::EXIT_OK;
}
private:
bool _helpRequested;
};