Skip to content

Commit

Permalink
Bugfix: when logger crashes, the client should reconnect. (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
aregtech authored Dec 17, 2023
1 parent 5706b3f commit 53eeb22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/areg/trace/private/NetTcpLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,18 @@ void NetTcpLogger::lostRemoteServiceChannel(const Channel & channel)

void NetTcpLogger::failedSendMessage(const RemoteMessage & msgFailed, Socket & whichTarget)
{
ASSERT(mIsEnabled);
if (mLogConfiguration.getStackSize() > 0)
{
mRingStack.pushLast(msgFailed);
}

sendCommand(ServiceEventData::eServiceEventCommands::CMD_ServiceLost);
}

void NetTcpLogger::failedReceiveMessage(Socket & whichSource)
{
sendCommand(ServiceEventData::eServiceEventCommands::CMD_ServiceLost);
}

void NetTcpLogger::failedProcessMessage(const RemoteMessage & msgUnprocessed)
Expand Down

0 comments on commit 53eeb22

Please sign in to comment.