!B (HNT-26703) Addendum: function 'AreMessagesToWrite' should be consistent in accordance to previous change in CL
1695214 !B (HNT-26703) Fix issue with message queue, where if a message with a dependency is in the queue, it would block the entire entity from sending any other message, until the dependency enters the queue.
With this solution, we skip over the message with unfulfilled dependencies, and we write any other pending message to socket.
This was causing issues in Hunt, where we were observing that even in zero packet loss conditions, messages were being mysteriously lost and delayed.
Copied from Perforce
Change:
1702274