aboutsummaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2017-04-03 17:30:34 +0300
committerVladimir Homutov <vl@nginx.com>2017-04-03 17:30:34 +0300
commita965e1d76642095f3f4e5f43d13a8b0379296e43 (patch)
treecbe27ab348d141c84299d77045c57ab011b65590 /src/mail/ngx_mail.c
parent9f7b5576735d1a711acfc62af45088a54c786d27 (diff)
downloadnginx-a965e1d76642095f3f4e5f43d13a8b0379296e43.tar.gz
nginx-a965e1d76642095f3f4e5f43d13a8b0379296e43.zip
Mail: configurable socket buffer sizes.
The "rcvbuf" and "sndbuf" parameters are now supported by the "listen" directive.
Diffstat (limited to 'src/mail/ngx_mail.c')
-rw-r--r--src/mail/ngx_mail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mail/ngx_mail.c b/src/mail/ngx_mail.c
index 9e560bb7c..5fd5fa00c 100644
--- a/src/mail/ngx_mail.c
+++ b/src/mail/ngx_mail.c
@@ -333,6 +333,8 @@ ngx_mail_optimize_servers(ngx_conf_t *cf, ngx_array_t *ports)
ls->log.handler = ngx_accept_log_error;
ls->backlog = addr[i].opt.backlog;
+ ls->rcvbuf = addr[i].opt.rcvbuf;
+ ls->sndbuf = addr[i].opt.sndbuf;
ls->keepalive = addr[i].opt.so_keepalive;
#if (NGX_HAVE_KEEPALIVE_TUNABLE)