diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-30 22:09:57 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-30 22:09:57 +0400 |
| commit | 4f6f653f482abc3b963727ea5f2c5d708d8fd605 (patch) | |
| tree | f60612bbd54711ac76addbea535e8647ca119775 /src/mail/ngx_mail.h | |
| parent | f86169ae7bbb30d0955be03a0adad1d1cd73a046 (diff) | |
| download | nginx-4f6f653f482abc3b963727ea5f2c5d708d8fd605.tar.gz nginx-4f6f653f482abc3b963727ea5f2c5d708d8fd605.tar.bz2 | |
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).
Diffstat (limited to 'src/mail/ngx_mail.h')
| -rw-r--r-- | src/mail/ngx_mail.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h index ccdfb8c6f..dc39f1e13 100644 --- a/src/mail/ngx_mail.h +++ b/src/mail/ngx_mail.h @@ -234,6 +234,8 @@ typedef struct { ngx_str_t smtp_from; ngx_str_t smtp_to; + ngx_str_t cmd; + ngx_uint_t command; ngx_array_t args; |
