[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] libevent & evbuffer_add_reference



On Sat, Feb 27, 2010 at 4:48 AM, Roman Puls <puls@xxxxxxxxxxxx> wrote:
> Apparently, this is not right, as the onsent-callback appears instantly (as
> long as the bev is not on its high watermark).

How are you testing this?   Is your connection via a local socket?
It's conceivable that your OS has very large buffers for local
sockets.   The callback should happens once the evbuffer memory is no
longer referenced which implies that it has been sent via the socket.

Niels.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.