For ENG-5345,  failed to flip buffer containing serialized data before c...

...ounting how many bytes are being discarded causing permanent backpressure