How to change the buffer size of a socket

How to change the buffer size of a socket

Post by Ronald van der Me » Sat, 26 Jan 1991 21:13:54


 I made a rsh (client) program for the Primos operating system. I am
using the standard server on the Sun at port 514. Everything works
fine except that the output from the rsh server is buffered. This is
unacceptable for interactive applications. This problem does not
occur between Unix systems. Question: how do I change the mode to
non-buffered? I am using a Sun3 with SunOS 4.0.3.

Ronald van der Meer


1. socket buffer size changes..


I am trying to understand why the send and receive socket buffers change
when set using setsockopt(SO_SNDBUF/SO_RCVBUF options) before and after
the listen call (assuming the buffers are set at the server end). This
behaviour seems to happen on Solaris only. VxWorks does not seem to
change the size.

For instance, if the socket size I wish to set on the sender and
receiver are 8192 bytes, the actual send buffer size before the listen()
call is 8192 and the receive buffer size changes to 8576 bytes.

Once a client connects, the send buffer size remains at 8192 while the
receive buffer size changes to 32768. I am running on Solaris 2.6.

Any views,


Sent via
Before you buy.

2. hangs up

3. Changing a socket buffer size

4. AIX/Informix

5. Any relationship between message size and tcp/udp socket buffer size?

6. lp interface for printing dos files

7. set socket send buffer size --- bug in Linux 2.0.x?

8. Hey Kohlmann, how about writing a benchmark?

9. Increase default upper bound of socket buffer size(UDP)

10. Application Socket Buffer size

11. Socket buffer sizes ...

12. Socket send buffer size

13. Socket Buffer Size Problem