unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Vivien Kraus via General Guile related discussions <guile-user@gnu.org>
To: Guile User <guile-user@gnu.org>
Subject: (web client) with suspendable ports
Date: Thu, 15 Jul 2021 19:32:21 +0200	[thread overview]
Message-ID: <a88a596f1f23ccf9b145bf919aa84f2b720e621a.camel@planete-kraus.eu> (raw)

Dear guile users,

(web client) defines a few handy methods to make requests, such as
http-get. I would like to try the suspendable ports interface, so that
while I wait for the server to send the response, I can do something
else.

However, it requires that the socket port is passed the O_NONBLOCK
flag. For HTTP URIs, it is possible since open-socket-for-uri returns a
file port. However, it is not the case for HTTPS URIs.

The guile web client should let me set this flag early (before TLS
negociation) so that I can avoid blocking because of a malicious (or
buggy) server. Ideally, DNS lookup should be non-blocking too.

Or is there a way to do this that I missed?

Best regards,

Vivien




                 reply	other threads:[~2021-07-15 17:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a88a596f1f23ccf9b145bf919aa84f2b720e621a.camel@planete-kraus.eu \
    --to=guile-user@gnu.org \
    --cc=vivien@planete-kraus.eu \
    /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).