forked from epics-base/pvxs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: schedule initial search use separate event from the generic work…
… queue By using `tcp_loop.dispatch` to schedule the initial search for a channel, we are placing the callback into the same work queue that is used by e.g. `MonitorBuilder::exec` to schedule the call to `Channel::build`. In situations where lots of channels are being created simultaneously this can result in lots of single channel search requests being sent because the work queue alternates between calls to build a channel and the initial search. In this commit we instead use a dedicated `evevent` to schedule the initial search to allow the `initialSearchBucket` to be filled before we send the initial search request. We delay the initial search by 10 ms to give more time for the bucket to be filled. See github.com/epics-base/pull/39 for a discussion of how this delay was chosen.
- Loading branch information
1 parent
64c480d
commit d25a263
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters