-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection fails with "flush: Address family not supported by protocol" #186
Comments
Running strace I've found:
The code line #include <sys/socket.h>
#include <stdio.h>
#include <string.h>
int main() {
printf("%d", socket(AF_UNSPEC, SOCK_STREAM|SOCK_CLOEXEC, 0));
perror("socket error");
return 0;
} Output:
|
Had the exact same issue with Arch, the most confusiong thing was that my debug build using my own fork of cqueues were still working.
Rolling back to gcc 6.3.1 (the only previous version in have in my package cache) or compiling with clang both produces a working binary. Not sure yet if it is a compiler bug or an undefined behaviour lying somewhere that GCC now optimizes differently. |
@jdesgats ah ha! thankyou for discovering that. I've managed to replicate locally now. The issue seems to be around |
I just ran into this myself - is the recommendation to install the code under #187 to get things working again until there's a release? |
Yes. I've gotten permission (via email) from wahern to merge and make a release myself. Just haven't had time yet. I also wanted to fix compiling with luajit 2.1 beta, the best route to which was bringing in lua-compat-5.3, however I need @siffiejoe to cut a release there (as I need some of the code on their master) -> but I think that's blocked on lunarmodules/lua-compat-5.3#36 |
Running the example simple.get I get the following error:
I am unable to connect to anything because of this.
My OS:
The text was updated successfully, but these errors were encountered: