[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] libevent & evbuffer_add_reference
- To: libevent-users <libevent-users@xxxxxxxxxxxxx>
- Subject: Re: [Libevent-users] libevent & evbuffer_add_reference
- From: Niels Provos <provos@xxxxxxxxx>
- Date: Sat, 27 Feb 2010 07:50:09 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sat, 27 Feb 2010 10:50:15 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=q3MlCzGuzPOJlwA/ywZxs7WmZ/cI3syN9Vf6NhzvMlc=; b=w/rftrGTO04Tpqn32gdYLCrAEK+k0tVXYiBp07JylLNEDU44v4J/aBr8CfG3Q7vTbt 6vHWZXfOIE74DWhQJbeUDQ0ztwB0sJGqDBFUc3+ICSfFdgDzMPVmuwztd+d6rZ7uvJdQ xLdS5h5IojrbGpc72y+UIYcmxPKaLAdP+N7uQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=k1BAc/wo33qqmcjO75T0QVoURt9iVhIxcuxWH613LgFlVDv9jDz7arHafrS5KpFJWC sN/G9OW3i+BLIoEKgYrvnOEaqjQuob29DdMm3iQDiKDtz4OVy64NGDsCFSWD5rUjXC76 kbb6UVPSB16vNEbPdQOSaWXCVPUyMH8SFNbY0=
- In-reply-to: <4B89148E.1090009@xxxxxxxxxxxx>
- References: <4B89148E.1090009@xxxxxxxxxxxx>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.