in reply to Sockets, autoflush, and TCP_NODELAY

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.

Replies are listed 'Best First'.
Re^2: Sockets, autoflush, and TCP_NODELAY
by BrowserUk (Patriarch) on Apr 17, 2009 at 15:13 UTC

    I don't know about Donga::Socket, but generally setting TCP_CORK has the opposite affect to that which the OP describes. It "corks" the socket, forcing it to accumulate and coalesce writes locally, until it is uncorked.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.