Commit 677ab26c authored by Micha Mueller's avatar Micha Mueller
Browse files

RESTHttpsServer: lower log level on socket shutdown to warning, as an error...

RESTHttpsServer: lower log level on socket shutdown to warning, as an error code does not necessarily indicate a problem
parent d8445412
......@@ -147,8 +147,11 @@ void RESTHttpsServer::handle_session(tcp::socket& socket, ssl::context& ctx) {
if(ec) { ServerLOG(error) << "stream shutdown: " << ec.message(); }
serverError:
//For graceful closure of a connected socket we shut it down first although
//this is not strictly necessary.
//Fails if client already disconnected from socket.
socket.shutdown(tcp::socket::shutdown_both, ec);
if(ec) { ServerLOG(error) << "socket shutdown: " << ec.message(); }
if(ec) { ServerLOG(warning) << "socket shutdown: " << ec.message(); }
socket.close(ec);
if(ec) { ServerLOG(error) << "socket close: " << ec.message(); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment