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]() {