aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpasio.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-26 00:40:36 +0200
committerDan Engelbrecht <[email protected]>2022-06-13 12:06:27 +0200
commit62e5a5a5537bfacd8e7dc8197b692763dce5bee4 (patch)
tree274e676c89c760dc62ad722b2df716d1460b5911 /zenhttp/httpasio.cpp
parentmore WIP (diff)
downloadzen-62e5a5a5537bfacd8e7dc8197b692763dce5bee4.tar.xz
zen-62e5a5a5537bfacd8e7dc8197b692763dce5bee4.zip
WIP
Diffstat (limited to 'zenhttp/httpasio.cpp')
-rw-r--r--zenhttp/httpasio.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp
index 1ca5fb1c1..3ca103bff 100644
--- a/zenhttp/httpasio.cpp
+++ b/zenhttp/httpasio.cpp
@@ -369,6 +369,10 @@ HttpServerConnection::TerminateConnection()
std::error_code Ec;
m_Socket->close(Ec);
+ if (Ec)
+ {
+ ZEN_ERROR("socket close received ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message());
+ }
}
void
@@ -658,6 +662,7 @@ HttpRequest::AppendInputBytes(const char* Data, size_t Bytes)
}
// Terribad, but better than buffer overflow
+ ZEN_WARN("Not enough buffer space, need {}, have {}. Closing connection", Bytes, RemainingBufferSpace);
TerminateConnection();
}