Add parameters like timeout, buffer_size to ClientSession.

This commit is contained in:
Chunting Gu
2019-07-26 09:59:24 +08:00
parent 64b3700675
commit 0f0f6fdf8e
3 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ void Connection::DoRead() {
void Connection::OnRead(boost::system::error_code ec, std::size_t length) {
if (ec) {
if (ec == boost::asio::error::eof) {
LOG_WARN("Socket read EOF (%s).", ec.message().c_str());
LOG_INFO("Socket read EOF (%s).", ec.message().c_str());
} else if (ec == boost::asio::error::operation_aborted) {
// The socket of this connection has been closed.
// This happens, e.g., when the server was stopped by a signal (Ctrl-C).