Re: How big is socket receive buffer, and how to control it?
- From: "Maxim Yegorushkin" <maxim.yegorushkin@xxxxxxxxx>
- Date: 30 Apr 2006 01:58:30 -0700
C. J. Clegg wrote:
If I use send() on one Linux box to send data to a socket on another
Linux box and use recv() to read the data, how large is the buffer on
the destination box, i.e. how much stuff can I send it before it
overflows or blocks and refuses to take any more?
There is a situation where the receiving host may not get around to
reading the data with recv() for a while.
Then there is nothing in the receive buffer.
Is there a way to control the size of the receive buffer, perhaps a
configuration parameter or even a change to a header file and a
recompile of the kernel?
man 7 socket
search for SO_SNDBUF and SO_RCVBUF
.
- References:
- How big is socket receive buffer, and how to control it?
- From: C . J . Clegg
- How big is socket receive buffer, and how to control it?
- Prev by Date: Re: Proxy firewall Antivirus
- Next by Date: Re: Proxy firewall Antivirus
- Previous by thread: How big is socket receive buffer, and how to control it?
- Next by thread: Proxy firewall Antivirus
- Index(es):
Relevant Pages
|