changeset 9233:9ca12c957304

Mail: switched to posted events when resuming reading. When resuming reading after ngx_mail_send(), switched to using posted events instead of a direct event handler call. This ensures limited stack usage when processing multiple pipelined commands.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 30 Mar 2024 05:04:25 +0300
parents 9a0849fd4b46
children c690a902bfec
files src/mail/ngx_mail_handler.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mail/ngx_mail_handler.c	Tue Mar 26 21:30:08 2024 +0300
+++ b/src/mail/ngx_mail_handler.c	Sat Mar 30 05:04:25 2024 +0300
@@ -799,7 +799,7 @@
         }
 
         if (s->blocked) {
-            c->read->handler(c->read);
+            ngx_post_event(c->read, &ngx_posted_events);
         }
 
         return;