-
Notifications
You must be signed in to change notification settings - Fork 22
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
Resource leak in Beacon tracking #184
Comments
This may have manifest first with RTEMS because |
I remember noticing this before, and also remember fixing it. But apparently I'm getting confused with a similar leak in code tracking TCP connections. cf. f1defe4 fixed in 6.1.0 |
What if the client simply ignores beacons? For existing but idle connections, there's already the periodic 'echo' mechanism. For disconnected channels, the search settles to once every ~30 seconds. Detecting beacons from new servers could reduce time to re-connect from those 30 seconds, but after a long disconnect another 30 seconds aren't too bad. So the beacons aren't absolutely necessary, and can in fact cause downtime, as we experienced with CA when clients woke up because of ill-timed beacons, resulting in a lot of search traffic, epics-base/jca#53 . |
As I understand things, the only ill effect should be slower reconnects. I usually describe Beacons as an optimization. |
The
m_beaconHandlers
map can grow without bound as new PVA servers come online.pvAccessCPP/src/remoteClient/clientContextImpl.cpp
Lines 4525 to 4530 in b2f0aec
This map needs to be bounded in size and/or time. (like PVXS does...)
The text was updated successfully, but these errors were encountered: