initial draft of hot reload policy

This commit is contained in:
2025-11-27 06:31:34 +00:00
parent 5fbe131755
commit 7fedcd24d3
19 changed files with 5057 additions and 9 deletions

View File

@@ -40,6 +40,11 @@ func validateJSONMessage(msg []byte) (err error) {
}
func (l *Listener) HandleMessage(msg []byte, remote string) {
// Acquire read lock for message processing - allows concurrent processing
// but blocks during policy/follow list updates (which acquire write lock)
l.Server.AcquireMessageProcessingLock()
defer l.Server.ReleaseMessageProcessingLock()
// Handle blacklisted IPs - discard messages but keep connection open until timeout
if l.isBlacklisted {
// Check if timeout has been reached