apply loc_bad_alloc to owned_ptr

Distinguish location of owned_ptr failure
This commit is contained in:
Michael Davidsaver
2023-03-28 11:13:52 -07:00
parent d692d7da2c
commit 303bc61079
11 changed files with 36 additions and 22 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ Connection::Connection(const std::shared_ptr<ContextImpl>& context,
nullptr,
peerAddr)
,context(context)
,echoTimer(event_new(context->tcp_loop.base, -1, EV_TIMEOUT|EV_PERSIST, &tickEchoS, this))
,echoTimer(__FILE__, __LINE__,
event_new(context->tcp_loop.base, -1, EV_TIMEOUT|EV_PERSIST, &tickEchoS, this))
{
if(reconn) {
log_debug_printf(io, "start holdoff timer for %s\n", peerName.c_str());