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

ser2net fix #245

Merged
merged 2 commits into from May 23, 2018
Merged

ser2net fix #245

merged 2 commits into from May 23, 2018

Conversation

jluebbe
Copy link
Member

@jluebbe jluebbe commented May 23, 2018

When many udev events happen very quickly (such as when a whole USB bus is reconnected), the intermediate disconnected state may be missed. This patch makes sure to restart ser2net when needed by comparing the current parameters to the ones used to start running ser2net process.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
@jluebbe jluebbe added the bug label May 23, 2018
@jluebbe jluebbe self-assigned this May 23, 2018
@jluebbe jluebbe requested a review from Emantor May 23, 2018 10:57
@codecov-io
Copy link

codecov-io commented May 23, 2018

Codecov Report

Merging #245 into master will decrease coverage by 0.1%.
The diff coverage is 31.2%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #245     +/-   ##
=======================================
- Coverage    55.1%    55%   -0.2%     
=======================================
  Files         105    105             
  Lines        6217   6243     +26     
=======================================
+ Hits         3431   3437      +6     
- Misses       2786   2806     +20
Impacted Files Coverage Δ
labgrid/remote/exporter.py 35.2% <31.2%> (-1.3%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59ad05b...7585a22. Read the comment docs.

@Emantor
Copy link
Member

Emantor commented May 23, 2018

Do we have any idea why the underlying disconnects are not recognised?

This workaround looks fine, but it would be better if we could fix the underlying issue as well.

@jluebbe
Copy link
Member Author

jluebbe commented May 23, 2018

The exporter misses the intermediate states because it doesn't process the the udev events (which is done in resource/udev.py) and can only see the current state.

@jluebbe jluebbe merged commit 7cfe025 into labgrid-project:master May 23, 2018
@rohieb
Copy link
Contributor

rohieb commented May 23, 2018

The first commit also fixes #236.

@Emantor
Copy link
Member

Emantor commented May 23, 2018

Thanks for noticing 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants