faster nonblocking io
Some checks failed
Docker Build & Publish / build (push) Failing after 1h24m16s
Some checks failed
Docker Build & Publish / build (push) Failing after 1h24m16s
This commit is contained in:
parent
6c5feb8675
commit
c07f3ebf81
8 changed files with 66 additions and 72 deletions
|
@ -10,7 +10,7 @@ std::shared_ptr<anthracite::thread_mgr::thread_mgr> server = nullptr;
|
|||
|
||||
extern "C" void signalHandler(int signum)
|
||||
{
|
||||
anthracite::log::warn << "Caught signal SIG" << sigabbrev_np(signum) << ", exiting Anthracite" << std::endl;
|
||||
//anthracite::log::warn << "Caught signal SIG" << sigabbrev_np(signum) << ", exiting Anthracite" << std::endl;
|
||||
if (server != nullptr) {
|
||||
server->stop();
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ int main(int argc, char** argv)
|
|||
signal(SIGINT, signalHandler);
|
||||
|
||||
anthracite::backends::file_backend fb("./www");
|
||||
anthracite::config::config cfg(3, 1000);
|
||||
anthracite::config::config cfg(1, 10);
|
||||
cfg.add_http_config(anthracite::config::http_config(8080));
|
||||
// cfg.add_https_config(config::https_config(8081, "", ""));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue