fibers
fibers copied to clipboard
PF_INET or PF_INET6 for AF_INET6?
When trying to use (run-server server-file-download-handler #:family AF_INET6 #:addr 1 #:port 8083) I get the error
ERROR: In procedure bind: Address family not supported by protocol
Is this due to creating the socket always with PF_INET instead of switching to PF_INET6 for AF_INET6?
https://github.com/wingo/fibers/blob/b86405a2f8daaee3c5d2fcd1b6cefd8e9543c703/fibers/web/server.scm#L47
I'd guess so! I guess the first argument of socket should be the first argument of make-default-socket, feel free to send a patch if you can confirm changing it works for you.