Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7371d183 authored by Panchajanya1999's avatar Panchajanya1999 Committed by Harshit Jain
Browse files

ipv4/tcp: Force applications to use `TCP_NODELAY` to improve network latency

`TCP_NODELAY` will disable Nagle's algorithm, which basically collects
small outgoing packets to send all at once.
Thus `TCP_NODELAY` will send the data whenever it is available without
waiting for any period to collect packets.

It will basically optimize network video games and applications
using chatty protocols (source: ExtraHop[1], RedHat[2])

[1]: https://www.extrahop.com/company/blog/2016/tcp-nodelay-nagle-quickack-best-practices/#:~:text=The%20TCP_NODELAY%20socket%20option%20allows,buffer%2C%20whatever%20the%20packet%20size.
[2]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_for_real_time/7/html/tuning_guide/tcp_nodelay_and_small_buffer_writes



Change-Id: Ief9f3a5e89c9b8ab0c0f8d1f144dda953e594a1c
Signed-off-by: default avatarPanchajanya1999 <panchajanya@azure-dev.live>
Signed-off-by: default avatarForenche <prahul2003@gmail.com>
Signed-off-by: default avatarCyber Knight <cyberknight755@gmail.com>
parent 962a9895
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment