Re: rcvbuf option

2014-02-19 Thread atarob
Maxim Dounin Wrote: --- > Hello! > > On Tue, Feb 18, 2014 at 05:16:18PM -0500, atarob wrote: > > > Maxim Dounin Wrote: > > --- > > > Hello! > > >

Re: headers_in_hash

2014-02-19 Thread atarob
Maxim Dounin Wrote: --- > Hello! > > On Tue, Feb 18, 2014 at 02:36:24PM -0500, atarob wrote: > > > Maxim Dounin Wrote: > > --- > > > Hello! > > >

Re: rcvbuf option

2014-02-18 Thread atarob
Maxim Dounin Wrote: --- > Hello! > > On Tue, Feb 18, 2014 at 02:58:05PM -0500, atarob wrote: > > > The config listen option rcvbuf which maps to the TCP SO_RCVBUF, is > applied > > to the listening socket, and not

rcvbuf option

2014-02-18 Thread atarob
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 drop

Re: inlining

2014-02-18 Thread atarob
Pankaj Mehta Wrote: --- > These should be covered during the link time optimisations. > > Look here for gcc: http://gcc.gnu.org/wiki/LinkTimeOptimization I was very much unaware of this. The linker actually compiles. Wow. Thanks. Posted at

Re: headers_in_hash

2014-02-18 Thread atarob
Maxim Dounin Wrote: --- > Hello! > > On Fri, Feb 14, 2014 at 04:39:23PM -0500, atarob wrote: > > > Creating a module, I want to read in from config desired http header > fields. > > Then, during config still, I want t

Re: inlining

2014-02-14 Thread atarob
> On Friday, February 14, 2014 04:59:26 PM atarob wrote: > > Looking through the codebase, I see a lot of very short helper like > > functions that are defined in .c files with prototypes in .h files. > This > > means that the compiler cannot inline them outside of that .c

inlining

2014-02-14 Thread atarob
Looking through the codebase, I see a lot of very short helper like functions that are defined in .c files with prototypes in .h files. This means that the compiler cannot inline them outside of that .c file. Am I wrong? How is that not a performance hit? Ata. Posted at Nginx Forum: http://foru

headers_in_hash

2014-02-14 Thread atarob
Creating a module, I want to read in from config desired http header fields. Then, during config still, I want to get the struct offset for the fields that have dedicated pointers in the header_in struct. It seems that when I access headers_in_hash from the main config, it is uninitialized. I can