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
tests: make pytest start ratbag-emu & better internal api #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split out this commit in at least 3:
- the server start part
- the udev rule handling
- the internal API, and explain why this is needed
Have you upgraded to upstream |
I just did and it's still the same. After stress testing the server a bit I started getting the following error and the server became slow.
|
I thought I fixed that error with my latest hid-tools commit. Basically, we are not pulling the udev events fast enough compared to the other hid and evdev events, meaning that you sometimes pull an event when UHIDDevice is not in a correct state. What can be a band-aid is to not destroy the device too quickly. Either postpone the destroy at a later time or simply add a little bit of a delay right after the creation in your client. TLDR: I don't think this is something you can easily solve right now, and I really don't have the time today. |
Adding a delay did not help that much, I tried up to 1s and this would still happen in some cases. What about giving each device its own dispatch thread? |
That would require a heavy refactoring of |
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Filipe Laíns <lains@archlinux.org>
c2f1ddc
to
dfbfb38
Compare
It's basically the |
Now it's clear. That's the problem of a gigantic patch: you don't know what to look for when reviewing. |
Signed-off-by: Filipe Laíns lains@archlinux.org