-
Notifications
You must be signed in to change notification settings - Fork 360
Reduce PortChecker blocking time #1249
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
base: master
Are you sure you want to change the base?
Conversation
when islinkLocal is true. The only difference is that it may return earlier due to testedAll.
islinkLocal and isIPAddress will always be true in the loop, since the function would have returned false otherwise.
|
Scott, |
This should have been a separate commit to begin with. Instead of having checkPort() modify the host parameter, call resolveLinkLocal() explicitly to modify it. This potentially modified parameter was only used after one call to checkPort(). The call to resolveLinkLocal() should immediately return without checking the port, using the cached scope or returning false, since the st_dbStarted case can only be entered by fallthrough and the previous case calls checkPort().
|
The new commit only effects link-local IPv6 addresses. I'll need to reorder the commits and separate the change fully from the PortChecker::checkPort(): Call resolveLinkLocal() commit before merging. Also, change doxygen comment for MythContext::Impl::checkPort(). |
|
Scott, after week to daily usage this code looks good for me. |
The first attempt was reverted due to decoder timeouts (see #1234).
I have made more granular changes for bisecting if there is an issue. I also increased the log levels to make it easier to notice the PortChecker log messages; these should be lowered back to their prior values before merging. I should also fix the indent levels before merging.
@gigem @warpme Could you test this to see if it also causes the decoder timeout issue?
Checklist