Mercurial > hg > nginx
diff src/mail/ngx_mail.c @ 6976:6c13008ad503
Mail: configurable socket buffer sizes.
The "rcvbuf" and "sndbuf" parameters are now supported by
the "listen" directive.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 03 Apr 2017 17:30:34 +0300 |
parents | cebf5fed00bf |
children | 4f9b72a229c1 |
line wrap: on
line diff
--- a/src/mail/ngx_mail.c Mon Apr 03 17:29:19 2017 +0300 +++ b/src/mail/ngx_mail.c Mon Apr 03 17:30:34 2017 +0300 @@ -333,6 +333,8 @@ 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)