Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top