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: Nala Ginrut
Subject: Re: [PATCH] read-response-body should return received data when error occcurs (V2)
Date: Fri, 16 Mar 2012 13:56:36 +0800

But our current doesn't
----------------------------
s/current/current read-response-body

Regards.

On Fri, Mar 16, 2012 at 1:54 PM, Nala Ginrut <address@hidden> wrote:
This patch will return any data get-bytevector-n received and throw error when get <eof>.
Actually, it's not the same feature in the old version thread http://lists.gnu.org/archive/html/guile-devel/2012-03/msg00116.html
The old version is complicated because it catches *any* exception and return the received data within exception.
But this new version is an easy one.
My point is, read-response-body is a low level procedure, so we shouldn't make it complex. But our current doesn't return received data when the received data is less than the content-length. I think it should return it, and let the user  determine whether it's an error or continue reading.
 And if any one need a more complicated handler, it's better to write his/her own body reader. My vote is to write a high level HTTP library to deal with the complex situation.


reply via email to

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