Skip to content

Commit

Permalink
Fix channel alive check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mapron committed May 15, 2023
1 parent a6de854 commit c01a986
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Platform/SocketFrameHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,9 @@ bool SocketFrameHandler::CheckConnection() const
if (!needToCheckReadActivity)
return true;

const bool readActivityOk = m_lastSucceessfulRead.GetElapsedTime() < m_settings.m_channelActivityTimeout;
return readActivityOk;
const bool readActivityOk = m_lastSucceessfulRead.GetElapsedTime() < m_settings.m_channelActivityTimeout;
const bool writeActivityOk = m_lastSucceessfulWrite.GetElapsedTime() < m_settings.m_channelActivityTimeout;
return readActivityOk || writeActivityOk;
}

bool SocketFrameHandler::CheckAndCreateConnection()
Expand Down

0 comments on commit c01a986

Please sign in to comment.