GNU bug report logs -
#79451
(web server http) make-default-socket hard-codes PF_INET
Previous Next
Full log
View this message in rfc822 format
[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 4 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.