bug#79450: (web server) documentation is wrong

"Athena L. Martin" via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <[email protected]> Mon, 15 Sep 2025 01:11:45 +0100
Newsgroups gmane.lisp.guile.bugs
Message-ID <13843469.uLZWGnKmhe@spock>
--nextPart3006724.e9J7NaK4W3
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: "Athena L. Martin" <[email protected]>
To: [email protected]
Subject: (web server) documentation is wrong
Date: Mon, 15 Sep 2025 01:11:45 +0100
Message-ID: <13843469.uLZWGnKmhe@spock>
MIME-Version: 1.0

The manual says that (web server)'s 'http can accept an address family like 
this:
(run-server handler 'http '(#:family AF_INET6 #:port 8081))

This doesn't work because AF_INET6 is quoted here. A correct example looks 
like:
(run-server handler 'http `(#:family ,AF_INET6 #:port 8081))

Note that this example currently doesn't work because of another bug (make-
default-socket hard-codes PF_INET) which I have reported in another message.

I would fix the manual myself but I don't know texinfo.

(Question: Did anyone test this example before publishing it, or did something 
change later? How did an incorrect version of such a simple example sneak in?)
--nextPart3006724.e9J7NaK4W3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEELAGoSzc6nHIdbhP+S8DcQuG8sXMFAmjHWcEACgkQS8DcQuG8
sXMREwf/UgXk2vRxM0ttzvaM/P6RbMSLNQF5oHCrFcRDjdHBLYIBPX8IX7rp41Z+
SNZ825v9a/iokRb4xb+o/NYTEnTbLkgpREs+F59ShOI+iGTgztqgAM38P4+7mgWX
Zj425m4hKmLDND+b+JYtQrInVGgDfLB8nD047zqb1cvGYacxqDthZZL8ZylQKrA8
Hi+dvfZce8blUOoNyhcrONBf0EUCTcfoL6h/0pMoH5NYhYrz2ZLYRqwBVGwuAXzG
MN9FpcbZkK6qbJA6ydnltPHVWs0Pa5hVAVUG5culFh2mAdMirapyUh0ArXPV9Sw5
04ieBbZseva7jEUtGjQ305bL069w7g==
=K+J5
-----END PGP SIGNATURE-----

--nextPart3006724.e9J7NaK4W3--