From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.bugs Subject: bug#13095: http-get: Throw to key `bad-response' with args `("EOF while reading response body: ...)' Date: Sat, 08 Dec 2012 19:59:50 +0000 Message-ID: <871uf0b9hl.fsf@Kagami.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354996849 32271 80.91.229.3 (8 Dec 2012 20:00:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2012 20:00:49 +0000 (UTC) Cc: 13095@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= To: Nikita Karetnikov Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Dec 08 21:01:01 2012 Return-path: Envelope-to: guile-bugs@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 1ThQZy-0005Ts-4S for guile-bugs@m.gmane.org; Sat, 08 Dec 2012 21:00:54 +0100 Original-Received: from localhost ([::1]:57700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThQZl-0005wA-VU for guile-bugs@m.gmane.org; Sat, 08 Dec 2012 15:00:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThQZi-0005w5-6o for bug-guile@gnu.org; Sat, 08 Dec 2012 15:00:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThQZh-00045n-1X for bug-guile@gnu.org; Sat, 08 Dec 2012 15:00:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThQZg-00045j-Uv for bug-guile@gnu.org; Sat, 08 Dec 2012 15:00:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ThQa6-0000wW-Al for bug-guile@gnu.org; Sat, 08 Dec 2012 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ian Price Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 08 Dec 2012 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13095 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13095-submit@debbugs.gnu.org id=B13095.13549968283579 (code B ref 13095); Sat, 08 Dec 2012 20:01:02 +0000 Original-Received: (at 13095) by debbugs.gnu.org; 8 Dec 2012 20:00:28 +0000 Original-Received: from localhost ([127.0.0.1]:33208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThQZX-0000vf-GT for submit@debbugs.gnu.org; Sat, 08 Dec 2012 15:00:28 -0500 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:34006) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThQZV-0000vV-41 for 13095@debbugs.gnu.org; Sat, 08 Dec 2012 15:00:25 -0500 Original-Received: by mail-we0-f172.google.com with SMTP id r3so642533wey.3 for <13095@debbugs.gnu.org>; Sat, 08 Dec 2012 11:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=g1XjBBQqPkCXSNW44B6ewaOd7VQE5MjVtAzrhBk0Uic=; b=zroanqydozUiNlOuESAHJCvWQaTOdcWo8AbeYSVzf+bEbM8LaUIAcrP7CpvIK9di9c U18+VY7H/MIEgieZFclnl1uOPLrp2gIlSovhqqFsxHkh2WXLjpEaScRlpD7jR+0Tezju f2mENyHNlg0l/rZvn37D1lWxDKoHuC287bRRHy0z3SkWUu2IoVFEekqcH9eKft9k1o0E vxogx3vMHnrRl1cjLa1IWf6SFf6OZfpZFv98LdsEv9+Y5lC/BjYLt/mpXwudNVH1fikx kp52BTpNY3Ra50fZ+/hiL17B2aBSsEHiCj5QExOZ/j9OWNZ9kbwR32zLsp65mp7Jtp25 d6sw== Original-Received: by 10.216.73.11 with SMTP id u11mr3453516wed.221.1354996797276; Sat, 08 Dec 2012 11:59:57 -0800 (PST) Original-Received: from Kagami.home (host86-177-158-15.range86-177.btcentralplus.com. [86.177.158.15]) by mx.google.com with ESMTPS id p2sm3963311wic.7.2012.12.08.11.59.55 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 08 Dec 2012 11:59:56 -0800 (PST) In-Reply-To: (Nikita Karetnikov's message of "Thu, 6 Dec 2012 02:20:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6658 Archived-At: Nikita Karetnikov writes: > Hi, > > I'm using Guile 2.0.7. 'http-get' fails to download the file. > > scheme@(guile-user)> (http-get (string->uri > "http://citylan.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2")) > ERROR: In procedure get-bytevector-all: > ERROR: Throw to key `bad-response' with args `("EOF while reading > response body: ~a bytes of ~a" (12731 421971))'. This will run correctly if you call http-get with the #:keep-alive? keyword set to #t. If you don't run it with that, the connection gets closed automatically, and so you'll get an EOF down the line when it tries to read from the port. I think this is a bug. The intended semantics of keep-alive? (I believe) is to keep it alive _after_ the request (including the body) is finished, not just the request headers. Strange though, I never noticed this come up when adding the chunked support in the first place. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"