aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpasio.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-08-19 03:30:54 -0700
committerGitHub <[email protected]>2022-08-19 03:30:54 -0700
commit606274a83d71928f8621c1d23648a26e8f79fa7d (patch)
treed951d51e1a7919463aeec398612e97b47f99f788 /zenhttp/httpasio.cpp
parentbump vcpkg version to 2022.08.15 (#146) (diff)
downloadzen-606274a83d71928f8621c1d23648a26e8f79fa7d.tar.xz
zen-606274a83d71928f8621c1d23648a26e8f79fa7d.zip
De/fix crash on non responding upstream (#145)
* Fix ZenStructuredCacheClient lifetime issues
Diffstat (limited to 'zenhttp/httpasio.cpp')
-rw-r--r--zenhttp/httpasio.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp
index bc3ee754d..e4b85710d 100644
--- a/zenhttp/httpasio.cpp
+++ b/zenhttp/httpasio.cpp
@@ -987,7 +987,10 @@ struct HttpAcceptor
m_Acceptor.async_accept(SocketRef, [this, Socket = std::move(SocketPtr)](const asio::error_code& Ec) mutable {
if (Ec)
{
- // TODO: Error condition - please handle and report properly
+ ZEN_ERROR("asio async_accept, connection failed to '{}:{}' reason '{}'",
+ m_Acceptor.local_endpoint().address().to_string(),
+ m_Acceptor.local_endpoint().port(),
+ Ec.message());
}
else
{