From 6381ee1d3166152f5eb46343049718823efc655a Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 25 Jan 2018 10:24:46 +0100 Subject: [PATCH] Fixes #146: added comment to server.on_error examples regarding connection timeouts --- http_examples.cpp | 1 + https_examples.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/http_examples.cpp b/http_examples.cpp index 0373a28..3e16a9c 100644 --- a/http_examples.cpp +++ b/http_examples.cpp @@ -202,6 +202,7 @@ int main() { server.on_error = [](shared_ptr /*request*/, const SimpleWeb::error_code & /*ec*/) { // Handle errors here + // Note that connection timeouts will also call this handle with ec set to SimpleWeb::errc::operation_canceled }; thread server_thread([&server]() { diff --git a/https_examples.cpp b/https_examples.cpp index a422760..7f8794a 100644 --- a/https_examples.cpp +++ b/https_examples.cpp @@ -200,6 +200,7 @@ int main() { server.on_error = [](shared_ptr /*request*/, const SimpleWeb::error_code & /*ec*/) { // Handle errors here + // Note that connection timeouts will also call this handle with ec set to SimpleWeb::errc::operation_canceled }; thread server_thread([&server]() {