Closed ColinSullivan1 closed 4 years ago
I had only flushed in blocking calls (they have no handler), because the full flush (PING/PONG) was expensive, but with the soft flush I suppose it makes sense to always call it.
On second thought, with async publishing users are more interested in performance rather than latency. Later, I'll do some benchmarks but for now want to the leave the async as is.
Use
Connection.FlushBuffer()
overConnection.Flush()
to reduce overhead and latency.Signed-off-by: Colin Sullivan colin@synadia.com