Skip to content
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

Fix for crashing when sending to USB interface #451

Merged
merged 1 commit into from Feb 3, 2020
Merged

Fix for crashing when sending to USB interface #451

merged 1 commit into from Feb 3, 2020

Conversation

TrondKjeldas
Copy link
Contributor

I have a Gira USB interface, and are running knxd on a Raspberry Pi3.

Later versions of knxd have usually crashed within a few seconds after sending a packet to the USB interface, hence have not been usable for me at all.

I looked at #415 and #450, which suggested increasing send-timeout to 5000, but that did not fix the problem for me.

When I got around to debugging the issue I found that the USBLowLevelDriver did not use the configured value, but used a hard-coded value of 1000.

Changing this to using the timeout value from the config seems to work for me, at least knxd have run without any hiccups for a couple of days now.

Note that I have only tried using a configured send-timeout of 5000.

@smurfix smurfix merged commit fa72d3c into knxd:master Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants