unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* (web client) with suspendable ports
@ 2021-07-15 17:32 Vivien Kraus via General Guile related discussions
  0 siblings, 0 replies; only message in thread
From: Vivien Kraus via General Guile related discussions @ 2021-07-15 17:32 UTC (permalink / raw)
  To: Guile User

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-15 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 17:32 (web client) with suspendable ports Vivien Kraus via General Guile related discussions

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 NNTP newsgroup(s).