[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] 14k vprintf evbuffer on solaris
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] 14k vprintf evbuffer on solaris
- From: Michael Herf <herf@xxxxxxxxx>
- Date: Wed, 29 Sep 2010 14:34:36 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 29 Sep 2010 17:41:05 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=sasl; bh=omI21UAgP2O/+8s9+HT8Sezdk zQ=; b=hfzLT8Z6nLm6dfpvE46XcgKT4W7PtrUy2tNtvL+jnEsLnJhi+dBtqLuiF NdUItruwypDlBOaFTNlPI2Zi/99h0nDyDRxOP5RIaWu0uexDoidJyfI90z48aKLZ tOPF4YVfG62B+7U57JLQcgLZ8ZxONFW0plS9DTEfzi8AiXMiDw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=sasl; b=sucUciAOaoniIlwl+hL iW90zLrXT5ZKF8G3dGlJoUv7m0OA8hpcdpLaKgjlmZcgUC0asJD2suSBbBBjXN1F vhutUv16BOhf96vjSVkKLOP9vDuY6jAm3gb1QQIX9IO/g2Sm4M1V+U3u/CWgsaoz XEct4G6uo5duU1v9jNEp5PAQ=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Thunderbird 2.0.0.24 (Windows/20100228)
I'm compiling libevent-2.0.7-rc on my Linux and OpenSolaris box. I'm
seeing a bug that happens on OpenSolaris only.
When I make an evbuffer and call "evbuffer_add_vprintf" to add more than
~14k to it (many small writes, few bytes at a time), the Solaris version
of the code fails and sends 0 bytes. (evbuffer_get_length() reports the
correct number, but evhttp_send_reply() sends nothing.)
The Linux version works fine, and sending larger blocks on Solaris via
"evbuffer_add()" works fine too (as do smaller buffers using
evbuffer_add_vprintf).
Has anyone else seen a failure case like this? (I'm going to dig in and
see what I can find.)
Currently I'm using evhttp to respond to http requests. I make a new
evbuffer, and then send with evhttp_send_reply.
This server has been "stable" for quite a while, until the recent
upgrade to 2.0.7-rc (was using 2.0.1 earlier).
mike
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.