Fixes #146: added comment to server.on_error examples regarding connection timeouts
This commit is contained in:
parent
fb4a17d5ed
commit
6381ee1d31
2 changed files with 2 additions and 0 deletions
|
|
@ -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]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue