Welcome! Log In Create A New Profile

Advanced

rcvbuf option

February 18, 2014 02:58PM
The config listen option rcvbuf which maps to the TCP SO_RCVBUF, is applied to the listening socket, and not inherited by the accept()ed connections. So if you have a high load application where the legitimate request is bound to be no more than 4K, for instance, you could save a lot of RAM by dropping the default here without changing it at the system level.

I straced nginx and it does not seem to actually apply the settings through a subsequent setsockopt to the accepted socket. Is this intentional or an oversight?

Thanks in advance.

Ata Roboubi
Subject Author Posted

rcvbuf option

atarob February 18, 2014 02:58PM

Re: rcvbuf option

Maxim Dounin February 18, 2014 04:18PM

Re: rcvbuf option

atarob February 18, 2014 05:16PM

Re: rcvbuf option

Maxim Dounin February 19, 2014 07:02AM

Re: rcvbuf option

atarob February 19, 2014 04:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready