[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Delivery of chunked response delayed until evhttp_send_reply_end()
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Delivery of chunked response delayed until evhttp_send_reply_end()
- From: "Heath N. Caldwell" <hncaldwell@xxxxxxxxx>
- Date: Wed, 16 Mar 2011 17:06:24 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 16 Mar 2011 20:06:34 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=DS3UdiofMEp4TFlk7EQCcBaE5QZVbWEAQ4AVh5agDws=; b=FBAFVW5PF8c6s/IfHOyBTXQOR46luLV1P7ikrxRJvMlYxJwOGmz4t2QRO5lDlrhIMU oVRethquC50tXGBsvFafFtKNaB4CkseWc1q5i94/hIOUkyh5dafFTjLxQvjrtR5TqUfc AMr0Blw3UJsOw1clH/IED+MtqePh05Y148/EQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=pvThbBvYSGk/PnHdVJlO2+YASamyKIDcFXLg1WECAKj54FSp8pyerCBdp4oxueLKMF VCrc7VAxRbkiWAkMnyzYPXpRRriKw9AElRIBpR001bwOVCiTlY4NO9nJz9Z2HWe8mvUL BhIqT0cvnIAIhn8Jr0yW7a25iGM6Tj8jCzKm4=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Mutt/1.5.21 (2010-09-15)
I am doing an experiment where I call evhttp_send_reply_start(), then
several evhttp_send_reply_chunk()s, with some delay (like 1 second)
before each call, and then a final evhttp_send_reply_end().
The expected behavior is that the headers will be sent, then each chunk
will be sent with a second delay before seeing the data for that chunk,
then the end of the response will be sent.
Instead, the behavior that I am seeing is that nothing is sent for the
total of all delays (say for 5 seconds if there are 5 chunks), and then
everything is sent all at once when evhttp_send_reply_end() is called.
I am missing something? Am I using the calls correctly? Should I be
flushing something after each evhttp_send_reply_chunk() call? Or is
this expected? (if so, it kind of defeats the purpose of a chunked
response).
Thanks,
--
Heath Caldwell
hncaldwell@xxxxxxxxx
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.