From: Timo Sirainen Date: Thu, 14 Apr 2022 15:52:53 +0000 (+0200) Subject: master: Add comment about services flooding status notifications X-Git-Tag: 2.4.0~4086 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9602991cd30b0b1e6714b0e9dfc5887efdfd185d;p=thirdparty%2Fdovecot%2Fcore.git master: Add comment about services flooding status notifications --- diff --git a/src/master/service-monitor.c b/src/master/service-monitor.c index c10e99c7cc..1fdc93a379 100644 --- a/src/master/service-monitor.c +++ b/src/master/service-monitor.c @@ -197,6 +197,9 @@ static void service_status_input(struct service *service) count = ret / sizeof(struct master_status); for (i = 0; i < count; i++) service_status_input_one(service, &status[i]); + /* If ret==sizeof(status) there may be more input available, but do it + in the next ioloop run. This way a single service can't flood the + master process and cause it to hang entirely. */ } static void service_log_drop_warning(struct service *service)