Thomas Ives 7ae659678f fix: do not re-search for other channels when doing initial channel search
When creating a large number of Channels at once, we can end up calling
`ContextImpl::poke(true)` many times in quick succession.  This results
in a flood of UDP broadcasts where we are searching for channels that we
only just sent out the initial search request for.

This can easily lead to packets getting lost and us not receiving a
reply for some Channels.  Moreover, as we keep resending search requests
for Channels, we reschedule them further and further in the future (as
`nSearch` is increased).  After the dust settles and we stop poking,
this can result in a wait of several seconds before a Channel which we
have not found is searched for again.

In this commit we avoid this issue by using a separate bucket to hold
channels waiting for their initial search request.  Rather than poking
`tickSearch` to do the initial search and also resend requests for
outstanding channels, we schedule a call to new call `tickSearch` which
will only send the initial search requests.  As such, we will avoid
rebroadcasting search requests for channels we have only just searched
for.

We have prompted the `discover` bool to an enum to distinguish between
the now three different situations `tickSearch` can be called in.
2023-04-14 10:14:30 -07:00
2022-11-27 11:55:22 -08:00
2022-12-13 15:55:06 -08:00
2023-04-03 07:35:30 -07:00
2022-11-27 08:20:13 -08:00
2022-06-14 11:25:59 -07:00
2023-04-14 10:14:30 -07:00
2023-04-06 11:45:41 -07:00
2022-11-27 11:55:22 -08:00
2022-04-05 12:01:28 -07:00
2020-03-16 09:23:17 -07:00
2022-10-14 10:20:51 -07:00
2022-04-05 12:01:28 -07:00
2019-10-23 13:29:31 -07:00
2020-09-08 13:59:44 -07:00
2022-12-13 15:55:06 -08:00
doc
2021-07-30 08:58:52 -07:00
2021-10-03 11:29:48 -07:00
2023-04-10 08:47:17 -07:00
S
Description
The "new" pvAccess library
Readme BSD-3-Clause
2.7 MiB
Languages
C++ 95.9%
Python 2.1%
Makefile 1.3%
Shell 0.3%
CMake 0.2%
Other 0.1%