unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 24075@debbugs.gnu.org
Subject: bug#24075: tls/https support in Guile (through r6rs binary ports?)
Date: Sun, 06 Nov 2016 22:40:40 -0600	[thread overview]
Message-ID: <87eg2n6gxj.fsf@dustycloud.org> (raw)
In-Reply-To: <8737j4z5bb.fsf@gnu.org>

Ludovic Courtès writes:

> Christopher Allan Webber <cwebber@dustycloud.org> skribis:
>
>> First of all, the response body starts in the wrong place... it should
>> start with "<!DOCTYPE html>".  Then, somewhere in the middle it switches
>> to garbage output.  I'm not sure why.
>
> [...]
>
>> +    (let ((record ((gnutls-ref 'session-record-port) session)))
>> +      (define (read! bv start count)
>> +        (define read-bv (get-bytevector-n record count))
>> +        (if (eof-object? read-bv)
>> +            0  ; read! returns 0 on eof-object
>> +            (let ((read-bv-len (bytevector-length read-bv)))
>> +              (bytevector-copy! read-bv 0 bv 0 read-bv-len)
>> +              read-bv-len)))
>
> Looks like ‘start’ is ignored here.  Could that be the reason?
>
> Ludo’.

... that was absolutely it.  What an omission on my part!  Thanks for
catching it. :)





      reply	other threads:[~2016-11-07  4:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26 15:55 bug#24075: tls/https support in Guile (through r6rs binary ports?) Christopher Allan Webber
2016-08-04 20:37 ` Andy Wingo
2016-08-21 15:58   ` Christopher Allan Webber
2016-11-05 18:39     ` Christopher Allan Webber
2016-11-05 19:02       ` Ludovic Courtès
2016-11-06 17:37         ` Christopher Allan Webber
2016-11-06 21:13           ` Ludovic Courtès
2016-11-07 18:14             ` Christopher Allan Webber
2016-11-07 20:13               ` Ludovic Courtès
2016-11-06 18:32         ` Christopher Allan Webber
2016-11-06 21:06           ` Ludovic Courtès
2016-11-07  4:40             ` Christopher Allan Webber [this message]

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=87eg2n6gxj.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=24075@debbugs.gnu.org \
    --cc=ludo@gnu.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).