On Monday 29 October 2001 12:24 pm, Dirk-Willem van Gulik wrote:

Timeouts are all handled by the server now.  If you want to set a different
timeout, you will have to call apr_set_socketopt on c->client.

Ryan

> Any equivalency for the timeout's ?
>
> Dw.
>
>     /* read post data and move to full separate buffer */
>     data = apr_pcalloc(r->pool, length + 1);  /* own error handling exit
>
>     // ap_hard_timeout("specweb99_post_handler read", r);
>
>     while ((len_read =
>             ap_get_client_block(r, argsbuffer, sizeof(argsbuffer))) > 0) {
>
>         // ap_reset_timeout(r);
>
>         if ((rpos + len_read) > length) {
>             rsize = length - rpos;
>         }
>         else {
>             rsize = len_read;
>         }
>         memcpy((char *)data + rpos, argsbuffer, rsize);
>         rpos += rsize;
>     }
>
>     // ap_kill_timeout(r);
>
>     data[length] = '\0';
>
> On Mon, 29 Oct 2001, Ryan Bloom wrote:
> > On Monday 29 October 2001 12:05 pm, Dirk-Willem van Gulik wrote:
> >
> > Use the same code that you would have used in 1.3, namely
> > ap_setup_client_block, ap_get_client_block, etc.  The filtering is all
> > done under the covers.
> >
> > Ryan
> >
> > > Anyone a good pointer as to where to snarf proper 'post' read code;
> > > i.e. I need to get some post data processing done in a handler in a
> > > module - and want to do it properly -i.e. through the filter chain etc.
> > >
> > > Any place I can cut and paste this from :-)
> > >
> > > Dw

-- 

______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to