From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] read-response-body should return received data when any break happens Date: Fri, 16 Mar 2012 11:24:57 +0800 Message-ID: References: <877gylu2wf.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1331868310 23059 80.91.229.3 (16 Mar 2012 03:25:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Mar 2012 03:25:10 +0000 (UTC) To: Nala Ginrut , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 16 04:25:09 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S8Nmr-0007zg-IJ for guile-devel@m.gmane.org; Fri, 16 Mar 2012 04:25:05 +0100 Original-Received: from localhost ([::1]:52321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Nmq-0001Vy-KO for guile-devel@m.gmane.org; Thu, 15 Mar 2012 23:25:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Nmo-0001UM-4Y for guile-devel@gnu.org; Thu, 15 Mar 2012 23:25:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8Nmm-00032V-2U for guile-devel@gnu.org; Thu, 15 Mar 2012 23:25:01 -0400 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:43351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Nml-00032F-Q2 for guile-devel@gnu.org; Thu, 15 Mar 2012 23:24:59 -0400 Original-Received: by dadv6 with SMTP id v6so6018036dad.0 for ; Thu, 15 Mar 2012 20:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wCduzrNiemhVUIWjzf4wyad54fypGcPzS34B5WsaM8Y=; b=JfZVqH7kctnVR6TT78xeebMPp+NvNtMIvF5IOZ6do2+eQq0fuQNEAUb7u0XCumUdej XHP2O+yN2NmCx6eduy00afVd/8BFrjPyhebGZ2LH/aerTxr57BF0IcUE50dLx1yLD7cj 6Y8BCZo1PhM122dl3pDrZQCmZkdVRT6zlWyQhKOe4aXFm50NkTKliqB0rhLiQe8NhKy7 Znb45KE0txPSajkdxN/EsFK7fKm59+9megok2tF/pWTRoxHIMyZHUE7d3sQAFon+krZq 9Sxl1wIeDpaTgl6OdVblVyGcUTtUfNj79fT7nnaFX+phZoBaMz7lXz9nIsBaMG7o0CDL K3xA== Original-Received: by 10.68.229.73 with SMTP id so9mr9985229pbc.163.1331868297597; Thu, 15 Mar 2012 20:24:57 -0700 (PDT) Original-Received: by 10.142.86.15 with HTTP; Thu, 15 Mar 2012 20:24:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.41 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14113 Archived-At: On 16 March 2012 10:23, Nala Ginrut wrote: > @Daniel: I realized that seems make "get-bytevector-n" return the received > data rather than read-response-body is better. But I'm afraid that it'll > conflict with the definition "get-bytevector-n". Say, we ask for n bytes, > but it returned m bytes less than n. So the user maybe get confused with the > name "get-bytevector-n". > The definition of get-bytevector-n states what happens when fewer than 'count' bytes are read. Also, get-bytevector-n! says it returns the number of bytes read as an integer. So... I don't see where the conflict is?