From: Igor Sysoev Date: Thu, 15 Feb 2007 13:30:19 +0000 (+0000) Subject: close connection for too long commands X-Git-Tag: release-0.5.13~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=bb19bcd867a05a52ca95b356453a3793d0f556ab;p=nginx.git close connection for too long commands --- diff --git a/src/imap/ngx_imap_handler.c b/src/imap/ngx_imap_handler.c index dad0994da..a32b10782 100644 --- a/src/imap/ngx_imap_handler.c +++ b/src/imap/ngx_imap_handler.c @@ -1253,6 +1253,8 @@ ngx_imap_read_command(ngx_imap_session_t *s) ngx_log_error(NGX_LOG_INFO, s->connection->log, 0, "client sent too long command \"%V\"", &l); + s->quit = 1; + return NGX_IMAP_PARSE_INVALID_COMMAND; }