-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conditioning not taking effect #13
Comments
OK. I spent an hour setting up a Debian Stretch VM in the same way I'd set up a Raspberry Pi. Here are my notes: Symptoms
Cause In a31e0a8, I replaced testing Now, if there aren't any traffic control queueing disciplines, then conditioning traffic for a device via the web UI should fail. Either:
Related Issues
|
I've just tested this locally and it can't happen. If the server returns a 4xx or 5xx error code, then the web UI doesn't update. |
I've just tested this locally and it isn't the case. |
... in DeviceService#setDeviceProfile and ProfileService#setProfile so that: - Errors can be handled at the application boundary; and - The /devices/:mac end point responds when the asynchronous work started by ProfileService#setProfile settles. In the case of ProfileService#setProfile, there wasn't actually any chaining, which could lead to an UnhandledPromiseRejectionWarning being raised when shelling out to tc fails. See #13 for context.
This is because handles aren't being converted to hex in |
tc requires handles to be hexadecimal rather than decimal. This requirement isn't documented anywhere, however... Not converting handles to hexadecimal causes the setup script to fail once there are seven or more profiles: the root prio qdisc has the correct number of classes (10) but the seventh child qdisc refers to the 16th (0x10), which doesn't exist. See #13 for context.
@dbrant: I'd appreciate if you could retry this with PiNC@5ef8b1d. |
Retrying from that commit, it looks like the throttle setting is being correctly persisted in the web UI. However, it still doesn't seem like any client connections are actually being throttled. The only error message I can see is the following from the |
I have a Raspberry Pi 3 (built-in wifi), and I've gotten as far as configuring it as an access point, running the PiNC service, and looking at the web interface.
However, when I actually enable throttling for a connected device, it doesn't seem to have any effect. The connection quality from the target device appears the same. In the PiNC web interface, the throttling icon is shown next to the device, but when I refresh the page, the icon goes away and the device is no longer shown as throttled.
The text was updated successfully, but these errors were encountered: