httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lyudmila L. Balakireva" <>
Subject [users@httpd] apache filter flush bucket chunked
Date Fri, 07 Oct 2011 17:08:03 GMT
I am writing some output filter and I am studying  existing code.
I need to create  socket in my code and read data from buckets and send
data using chunking encoring.
So my question if I need to do any special processing with flush buckets,
besides forwarding them to next filter.

example below is from chunk_filter.c

When doing chunking encoding why  CRLF needs to be inserted before flush
bucket, Is it just metadata bucket you skip ?

             * Insert the end-of-chunk CRLF before an EOS or
             * FLUSH bucket, or appended to the brigade
            e = apr_bucket_immortal_create(ASCII_CRLF, 2, c->bucket_alloc);
            if (eos != NULL) {
                APR_BUCKET_INSERT_BEFORE(eos, e);
            else if (flush != NULL) {
                APR_BUCKET_INSERT_BEFORE(flush, e);


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message