guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] read-response-body should return received data when error oc


From: Daniel Hartwig
Subject: Re: [PATCH] read-response-body should return received data when error occcurs (V2)
Date: Sat, 17 Mar 2012 01:25:26 +0800

On 17 March 2012 00:57, Ian Price <address@hidden> wrote:
>
> This still doesn't answer my concerns. I don't think the user should
> have to be checking the length of the result themselves.
>
> (let ((bv (get-bytevector-n (response-port r) nbytes)))
>  (cond ((eof-object? bv)
>         (incomplete-response ...))
>        ((= (bytevector-length bv) nbytes) bv)
>        (else
>         (incomplete-response ...))))
>

This.

> Am I the only one who feels strongly about this?
>

No.  I guess you are still reading the rest of the thread ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]