Domanda

If a tcp server has thousands of concurrent connections, and each tcp client sends very small data occasionally, Should i adjust SO_RCVBUF to a very small size to save precious memory?

p.s. the size of data is less than 30 byte, the time interval of data tranfer is larger than 5 seconds

È stato utile?

Soluzione

Definitely not. You won't be able to decrease it below the platform minimum anyway, which will be at least 8k.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top