Fixes #146: added comment to server.on_error examples regarding connection timeouts

This commit is contained in:
eidheim 2018-01-25 10:24:46 +01:00
commit 6381ee1d31
2 changed files with 2 additions and 0 deletions

View file

@ -202,6 +202,7 @@ int main() {
server.on_error = [](shared_ptr<HttpServer::Request> /*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]() {

View file

@ -200,6 +200,7 @@ int main() {
server.on_error = [](shared_ptr<HttpsServer::Request> /*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]() {