Suppose that I have a sender socket and receiver socket. The sender socket sends messages which are 1 GB in total, but the receiver socket neither read from nor close the socket.
What happens to the 1GB of messages before either socket closes? Are they sitting somewhere in OS buffer?
To be more specific...
- Each sender has its own thread.
- All senders have flushed their output stream.
- All messages are passed by loopback interface