httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Replacing ap_get_client_block with ap_get_brigade
Date Wed, 21 May 2003 00:24:37 GMT
Justin Erenkrantz wrote:
> --On Tuesday, May 20, 2003 9:06 AM -0400 "P. Dwayne Miller" 
> <dmiller@espgroup.net> wrote:
> 
>> This may be a little off topic for this list, but I'll ask anyway.  Feel
>> free to redirect me to the proper list.
> 
> 
> Nah, this is on-topic.  =)
> 
>> Has anyone written a how-to, or documented the steps required to 
>> migrate a
>> module from using the *client_block* calls with the appropriate *brigade*
>> calls?
>>
>> I currently see the following calls used by the module (not 
>> necessarily in
>> this order):
>>
>> return ap_setup_client_block(r, REQUEST_CHUNKED_ERROR);
>> return ap_should_client_block(r);
>> return ap_get_client_block(r, contentbuff, len);
> 
> 
> Something like the following might work:
[code snipped]
> This is off the top of my head, but this is roughly how I'd do it.

P. Dwayne, look at mod_cgi.c which does pretty much the same as Justin has 
shown and is a tested code.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message