fibers icon indicating copy to clipboard operation
fibers copied to clipboard

PF_INET or PF_INET6 for AF_INET6?

Open ArneBab opened this issue 7 years ago • 1 comments

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

ArneBab avatar Sep 07 '18 21:09 ArneBab

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.

emixa-d avatar Jul 23 '22 19:07 emixa-d