GNU bug report logs - #79451
(web server http) make-default-socket hard-codes PF_INET

Previous Next

Package: guile;

Reported by: "Athena L. Martin" <secure <at> alm.website>

Date: Mon, 15 Sep 2025 00:14:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Athena L. Martin" <secure <at> alm.website>
To: bug-guile <at> gnu.org
Subject: (web server http) make-default-socket hard-codes PF_INET
Date: Mon, 15 Sep 2025 01:09:21 +0100
[Message part 1 (text/plain, inline)]
scheme@(guile-user)> (use-modules (web server))
scheme@(guile-user)> (define (handler request body) (values '((content-type . 
(text/plain))) "Hello world"))
scheme@(guile-user)> (run-server handler 'http `(#:family ,AF_INET6 #:port 
8081))

Expected result: A Web server starts and serves "Hello world" to all requests, 
via IPv6.
Actual result:
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure bind: Address family not supported by protocol

I traced this problem to make-default-socket, which hard-codes PF_INET, 
heedless of the fact that different address families may require different 
protocol families as well (indeed, the two terms are nearly synonymous 
nowadays).

Guile version:
guile (GNU Guile) 3.0.9

Distributor: GNU Guix
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.