How big is socket receive buffer, and how to control it?
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.
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?
Both hosts in this situation are Pentium 4 running Fedora Core 3 with
512 MB RAM.
Thanks...
.
Relevant Pages
- Re: How big is socket receive buffer, and how to control it?
... 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 ... Then there is nothing in the receive buffer. ... (comp.os.linux.networking) - Re: BSD sockets: recv with MSG_WAITALL should return EWOULDBLOCK?
... (I am not convinced it is much use for blocking sockets ... many bytes as the size argument to recv() or to close the connection ... And this sounds like 'if you are using a buffer size that doesn't ... Another frame arrives and more data is queued to the socket buffer. ... (comp.unix.programmer) - Re: TdiBuildReceive question
... Irp->IoStatus.Information < the size of the buffer. ... then it is better to fill it as much as possible, and not complete the recv() ... To prevent such a time loss, the TCP protocol has a PSH bit ... PSH means - "the sender does not know when the next bytes will ... (microsoft.public.development.device.drivers) - Re: recv WSAENOBUFS error
... cross-posting, I did cross-post it initially, but I just started using ... it always asks for the "packet length" amount in the call to recv. ... You can set kernel-mode buffer with setsockopt but you'll quickly finish ... (microsoft.public.win32.programmer.kernel) - Re: How to develop a random number generation device
... Many operating systens are by design, immune to buffer over-runs modifying unrelated code. ... randomising memory locations) rather than actually preventing the overrun. ... If you try to run a 5-year old Linux binary on a current distribution, ... Linux, and the API is very stable - new API's and system calls are added, but existing ones are seldom changed or removed, and never without very good reason. ... (sci.electronics.design) |
|