[EMAIL PROTECTED] (Andreas J. Koenig) writes:

> >>>>> On 12 Dec 2005 10:00:04 -0800, Gisle Aas <[EMAIL PROTECTED]> said:
> 
>   > [EMAIL PROTECTED] (Andreas J. Koenig) writes:
>  >> Thanks for coming back to my question. In the meantime I have verified
>  >> that $c->get_request() does it right. I append a testscript for that;
>  >> hope you like it.
> 
>   > I did't find anything appended.
> 
> Ooops, sorry, I'll retry now.

Got it and checked it in as t/local/chunked.t. Thanks!

>   >                 while ($missing > 0) {
>   >                     print STDERR "Need $missing more bytes\n" if $DEBUG;
>   >                     my $n = $self->_need_more($buf, $timeout, $fdset);
> 
> Watch that the arguments to _need_more() are not supplied within this
> snippet. I'd have to write a variation of the whole 210 lines of
> get_request including the use of a seemingly private method (as its
> name starts with an underscore) and dereferencing ${*$self}. You will
> understand that this is a bit against the usual rules?

Yes.  The quoted code was just to illustrate what needs to be done and
_need_more() is to be regarded as a template for $self->sysread($buf,
1024) or so.

> Sure:) But maybe you have a slightly more ecouraging idea for a interface?

Sorry, no and not enough time to develop it right now either.

--Gisle

Reply via email to