Re: SO_SNDBUF and SO_RCVBUF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- tune more <tunemore@yahoo.com> wrote:
> Thanks, so each socket has their own buffers.
> Is there any way to set buffer size for all?
> And can we also set default buffer size for all?

 There's no way to set the buffer size for all existing
sockets without individual setsockopt calls. But you can
change the default buffer size for all future sockets. To
do this, write the required value to
/proc/sys/net/core/wmem_default (for send buffer) and 
/proc/sys/net/core/rmem_default (for recv buffer).


Ravi.

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux