Skip to content

Commit

Permalink
Work-around for zeroc-ice#2336
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jun 21, 2024
1 parent 3c77df8 commit dd6d183
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions csharp/src/Ice/ConnectionI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2119,10 +2119,15 @@ _inactivityTimer is null && // timer not already scheduled
// inactivity timer if all outgoing messages in _sendStreams are heartbeats.
foreach (OutgoingMessage queuedMessage in _sendStreams)
{
if (queuedMessage.stream.getBuffer().b.get(8) != Protocol.validateConnectionMsg)
// TODO: temporary work-around for #2336
Ice.Internal.Buffer buffer = queuedMessage.stream.getBuffer();
if (!buffer.empty()) // should never happen
{
isInactive = false;
break; // for
if (buffer.b.get(8) != Protocol.validateConnectionMsg)
{
isInactive = false;
break; // for
}
}
}

Expand Down

0 comments on commit dd6d183

Please sign in to comment.