aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-04-21 23:24:59 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-04-21 23:24:59 +0300
commit7b9920aad80299d79f4dba08de36693804f8751c (patch)
tree6869e939b45905b45b51b511c2a5a398ff92652a /src/os/unix/ngx_process_cycle.c
parentead9ab09255042559c5568cb5959a487fbef2fab (diff)
downloadnginx-7b9920aad80299d79f4dba08de36693804f8751c.tar.gz
nginx-7b9920aad80299d79f4dba08de36693804f8751c.zip
Mail: fixed reading with fully filled buffer (ticket #2159).
With SMTP pipelining, ngx_mail_read_command() can be called with s->buffer without any space available, to parse additional commands received to the buffer on previous calls. Previously, this resulted in recv() being called with zero length, resulting in zero being returned, which was interpreted as a connection close by the client, so nginx silently closed connection. Fix is to avoid calling c->recv() if there is no free space in the buffer, but continue parsing of the already received commands.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
0 files changed, 0 insertions, 0 deletions