unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: <dsmich@roadrunner.com>
To: "Thien-Thi Nguyen" <ttn@gnuvola.org>, "Ludovic Courtès" <ludo@gnu.org>
Cc: 13095@debbugs.gnu.org, Ian Price <ianprice90@googlemail.com>
Subject: bug#13095: http-get: Throw to key `bad-response' with args `("EOF while reading response body: ...)'
Date: Mon, 10 Dec 2012 8:45:41 -0500	[thread overview]
Message-ID: <20121210134542.4VV04.54259.root@cdptpa-web34-z02.mail.rr.com> (raw)
In-Reply-To: <87y5h8i068.fsf@gnu.org>


---- "Ludovic Courtès" <ludo@gnu.org> wrote: 
> Thien-Thi Nguyen <ttn@gnuvola.org> skribis:
> 
> > HTTP 1.0 is "close by default", but HTTP 1.1 is "keep open by default",
> > if i recall correctly.  Does that have anything to do w/ this bug?
> 
> Note sure, because both http://citylan.dl.sourceforge.net (the example
> that fails) and http://ftp.gnu.org (one that works even with the
> ‘shutdown’ call) are HTTP 1.1:
> 
> --8<---------------cut here---------------start------------->8---
> scheme@(guile-user)> (use-modules (web client)(web uri)(rnrs io ports))
> scheme@(guile-user)> (define resp (http-get (string->uri "http://citylan.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2")))
> scheme@(guile-user)> resp
> $1 = #<<response> version: (1 . 1) code: 200 reason-phrase: "OK" headers: ((server . "nginx/1.0.12") (date . #<date nanosecond: 0 second: 25 minute: 35 hour: 23 day: 8 month: 12 year: 2012 zone-offset: 0>) (content-type application/octet-stream) (content-length . 421971) (last-modified . #<date nanosecond: 0 second: 58 minute: 47 hour: 6 day: 20 month: 4 year: 2012 zone-offset: 0>) (connection close) (accept-ranges bytes)) port: #<closed: file 0>>
> scheme@(guile-user)> (define resp* (http-get (string->uri "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz")))
> scheme@(guile-user)> resp*
> $2 = #<<response> version: (1 . 1) code: 200 reason-phrase: "OK" headers: ((date . #<date nanosecond: 0 second: 59 minute: 35 hour: 23 day: 8 month: 12 year: 2012 zone-offset: 0>) (server . "Apache/2.2.14 (Trisquel GNU/Linux)") (last-modified . #<date nanosecond: 0 second: 47 minute: 55 hour: 17 day: 20 month: 4 year: 2012 zone-offset: 0>) (etag "4648b4-aa48b-4be1fff866200" . #t) (accept-ranges bytes) (content-length . 697483) (connection close) (content-type application/x-gzip)) port: #<closed: file 0>>
> --8<---------------cut here---------------end--------------->8---

Hmm..  The failing site is running on nginx/1.0.12 while the working site is Apache/2.2.14.

-Dale






  reply	other threads:[~2012-12-10 13:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-05 23:20 bug#13095: http-get: Throw to key `bad-response' with args `("EOF while reading response body: ...)' Nikita Karetnikov
2012-12-08 19:59 ` Ian Price
2012-12-08 20:06   ` Ian Price
2012-12-08 20:47     ` Ian Price
     [not found]       ` <87d2ykqkiy.fsf@zigzag.favinet>
2012-12-08 23:39         ` Ludovic Courtès
2012-12-10 13:45           ` dsmich [this message]
2013-01-12 14:47       ` Ian Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121210134542.4VV04.54259.root@cdptpa-web34-z02.mail.rr.com \
    --to=dsmich@roadrunner.com \
    --cc=13095@debbugs.gnu.org \
    --cc=ianprice90@googlemail.com \
    --cc=ludo@gnu.org \
    --cc=ttn@gnuvola.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).