Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top