|
From: | Nala Ginrut |
Subject: | Re: [PATCH] read-response-body should return received data when error occcurs (V2) |
Date: | Sat, 17 Mar 2012 09:46:48 +0800 |
On 17 March 2012 00:57, Ian Price <address@hidden> wrote:This.
>
> 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 ...))))
>
No. I guess you are still reading the rest of the thread ;-)
> Am I the only one who feels strongly about this?
>
[Prev in Thread] | Current Thread | [Next in Thread] |