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

pull/1/head Release_2.1.0-RC7
Jorg Knobloch 3 years ago
parent 49c9c7456a
commit fe1c8583a5

@ -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