You could look at the methods Danga::Socket uses to flush the socket connections. I think the ->cork method tries to make the socket send everything that is in the buffer.
In reply to Re: Sockets, autoflush, and TCP_NODELAY
by Corion
in thread Sockets, autoflush, and TCP_NODELAY
by packetwhacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |