-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Websocket has no route out if connection is started before interface is up or is reset #3197
Comments
I would definitely start by trying lws main branch |
Thanks for the suggestion. But it has the same result:
PS: the "2021.11.1.1" in the version is probably from the buildroot I am using. (which is 2021.11.1.1) |
The version number not changing is a bit suspicious... this is created when running cmake on a git checkout, it implies either redoing cmake was not triggered by changing the sources wholesale, which is very doubtful, or that you unpacked main on top of the original checkout without any git operations, it's possible but unusual. Since nothing changed it sounds more likely that your app is linking against the original built library unchanged. You could check it by adding a "sanity" log in the create context code itself to prove if you are running main or not. Netlink support works for most cases but it is heavily dependent on what the userland part is doing with the network device and its routes, it's basically reporting primitive operations triggered by NetworkManager or conman or whatever. GSM added or not is not something I am able to test. |
Hello,
INFO
I am using libwebsockets version 4.3.3 and the minimal ws client example.
It is cross compiled for a linux (buildroot) system with -DLWS_WITH_NETLINK=1
The issue
When the ppp0 (GSM) connection comes up (by running
ifup ppp0
), after the connection is started it has no route.I understand why the message "has no route out" is given before the interface is up, but I would assume it can connect when the ppp0 interface is up and there is a route.
I see
rops_handle_POLLIN_netlink: DELADDR
when the interface is going up but I would have expected anADDADDR
.The only thing I changed in the minimal example is the IP address & path because this SIM can only connect to a specific IP range.
If the ppp0 connection is up before starting the minimal example it connects without an issue.
LOG
But if I check the default route is there.
it seems to be similar to issue #2311 but the links there to the setup/examples are broken so I can't see the fix.
EDIT
I also tested it with -DLWS_WITH_NETLINK=0, that seems to work. Could this be a netlink bug or is this working as intended?
The text was updated successfully, but these errors were encountered: