Browse Source

Added comment and wrapped output to stderr in #ifndef NDEBUG.

master Release_2.1.0-RC7
Jorg Knobloch 2 years ago
parent
commit
fe1c8583a5
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      webserver.cc

+ 7
- 1
webserver.cc View File

@ -180,7 +180,13 @@ void Webserver::do_session(tcp::socket *socket)
http::read(*socket, buffer, parser, ec);
if (ec) {
std::cerr << ec.message() << "\n";
#ifndef NDEBUG
// This will print stuff like ...
// - end of stream
// - An established connection was aborted by the software in your host machine
// ... so don't be alarmed.
std::cerr << "pEpWebserver: " << ec.message() << "\n";
#endif
goto the_end;
}


Loading…
Cancel
Save