Mercurial > hg > nginx
comparison src/mail/ngx_mail.h @ 5398:04e43d03e153
Mail: smtp pipelining support.
Basically, this does the following two changes (and corresponding
modifications of related code):
1. Does not reset session buffer unless it's reached it's end, and always
wait for LF to terminate command (even if we detected invalid command).
2. Record command name to make it available for handlers (since now we
can't assume that command starts from s->buffer->start).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 30 Sep 2013 22:09:57 +0400 |
parents | bdcdbdf35b52 |
children | ec01b1d1fff1 |
comparison
equal
deleted
inserted
replaced
5397:ae73d7a4fcde | 5398:04e43d03e153 |
---|---|
232 ngx_str_t host; | 232 ngx_str_t host; |
233 ngx_str_t smtp_helo; | 233 ngx_str_t smtp_helo; |
234 ngx_str_t smtp_from; | 234 ngx_str_t smtp_from; |
235 ngx_str_t smtp_to; | 235 ngx_str_t smtp_to; |
236 | 236 |
237 ngx_str_t cmd; | |
238 | |
237 ngx_uint_t command; | 239 ngx_uint_t command; |
238 ngx_array_t args; | 240 ngx_array_t args; |
239 | 241 |
240 ngx_uint_t login_attempt; | 242 ngx_uint_t login_attempt; |
241 | 243 |