httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamas Palagyi <tamas.pala...@ge.com>
Subject sending data to output filter
Date Tue, 10 Jun 2008 21:35:42 GMT
Hello,

When we send data to an output filter, how can I know
whether all my data has been sent successfully?

I am using this example code:


apr_status_t rv;
apr_bucket_brigade *bb;
apr_bucket *b;
    
bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
    
b = apr_bucket_immortal_create(buf, len, bb->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, b);
APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_eos_create(bb->bucket_alloc) );

rv = ap_pass_brigade(r->connection->output_filters, bb);
apr_brigade_destroy(bb);


If the ap_pass_brigade() returned means that all my data has been 
sent successfully? Is ap_pass_brigade going to block till 
all data sent (or gives back error)?

Thanks in advance,

Tamas







Mime
View raw message