Re: getsockopt/setsockopt with SO_RCVBUF and SO_SNDBUF "non-standard" behaviour

2012-07-19 Thread Eugen Dedu
On 18/07/12 19:32, Rick Jones wrote: On 07/18/2012 09:11 AM, Eric Dumazet wrote: That the way it's done on linux since day 0 You can probably find a lot of pages on the web explaining the rationale. If your application handles UDP frames, what SO_RCVBUF should count ? If its the amount of pa

Re: getsockopt/setsockopt with SO_RCVBUF and SO_SNDBUF "non-standard" behaviour

2012-07-18 Thread Eugen Dedu
Any idea? On 17/07/12 11:27, Eugen Dedu wrote: Hi all, I looked on Internet and at the old thread http://lkml.indiana.edu/hypermail/linux/kernel/0108.0/0275.html, but the issue is still not settled as far as I see. I need to have the highest memory available for snd/rcv buffer and I need to

getsockopt/setsockopt with SO_RCVBUF and SO_SNDBUF "non-standard" behaviour

2012-07-17 Thread Eugen Dedu
wice as memory has nothing to do with that, since getsockopt should return what the application can count on, not what is the internal use. It is like a hypothetical malloc (10) would return not 10, but 20 (including meta-information). Is that right? Cheers, -- Eugen Dedu http://eugen.