Mercurial > hg > nginx-quic
annotate docs/html/index.html @ 8457:6a81d96d3733
Mail: fixed handling of invalid SMTP commands split between reads.
Previously, if an invalid SMTP command was split between reads, nginx failed
to wait for LF before returning an error, and interpreted the rest of the
command received later as a separate command.
The sw_invalid state in ngx_mail_smtp_parse_command(), introduced in
04e43d03e153, did not work, since ngx_mail_smtp_auth_state() clears
s->state when returning an error due to NGX_MAIL_PARSE_INVALID_COMMAND.
And not clearing s->state will introduce another problem: the rest
of the command would trigger duplicate error when rest of the command is
received.
Fix is to return NGX_AGAIN from ngx_mail_smtp_parse_command() until full
command is received.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 19 May 2021 03:13:15 +0300 |
parents | ed470a7bf7fd |
children | 67c68cd973b8 |
rev | line source |
---|---|
4834 | 1 <!DOCTYPE html> |
450 | 2 <html> |
3 <head> | |
4 <title>Welcome to nginx!</title> | |
4834 | 5 <style> |
6 body { | |
7 width: 35em; | |
8 margin: 0 auto; | |
9 font-family: Tahoma, Verdana, Arial, sans-serif; | |
10 } | |
11 </style> | |
450 | 12 </head> |
4834 | 13 <body> |
14 <h1>Welcome to nginx!</h1> | |
15 <p>If you see this page, the nginx web server is successfully installed and | |
16 working. Further configuration is required.</p> | |
17 | |
18 <p>For online documentation and support please refer to | |
19 <a href="http://nginx.org/">nginx.org</a>.<br/> | |
20 Commercial support is available at | |
21 <a href="http://nginx.com/">nginx.com</a>.</p> | |
22 | |
23 <p><em>Thank you for using nginx.</em></p> | |
450 | 24 </body> |
25 </html> |