Give client setNoDelay option and give server setQuickAck see: https://www.extrahop.com/company/blog/2016/tcp-nodelay-nagle-quickack-best-practices/ https://eklitzke.org/the-caveats-of-tcp-nodelay