SA Bugzilla – Bug 1911
Configurable lock timeout
Last modified: 2022-03-06 16:15:53 UTC
The lock timeout for DBWhitelist is 30 seconds (not configurable), the lock timeout for Bayes is 10 or 300 seconds. Please add a configuration option to reduce lock timeouts and max lock age (since --add-to-whitelist etc makes little sense in read only mode, a different lock timeout for explicitly modifying the whitelist/blacklist would be good, too)
enhancement -> 2.70
This seems trivial. Add a new option awl_timeout nnn 30 seconds seems to be hardcoded into DBBasedAddrList.pm:75
Subject: Re: Configurable lock timeout > awl_timeout nnn We should just have one configurable timeout for the locking code.
'We should just have one configurable timeout for the locking code.' disagree. How long to use for a timeout depends entirely on the calling code's design, not on the abstracted locking subsystem used. for example: - opportunistically attempting to autolearn during scanning: short lock timeout - AWL update: short lock timeout - user-initiated manual training: long timeout we've been through this before IIRC, with a lock-timeout specified in the locking code, and ran into many problems that resulted in us changing to the timeout being controllable from the high-level calling code instead.
move bug to Future milestone (previously set to Future -- I hope)
Closing ancient stale bug.