Mercurial > hg > nginx
diff src/mail/ngx_mail_proxy_module.c @ 6141:bf1655ae9a1c
Removed the deprecated "so_keepalive" directive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 29 Apr 2015 13:53:08 +0300 |
parents | bb3dc21c89ef |
children | f01ab2dbcfdc |
line wrap: on
line diff
--- a/src/mail/ngx_mail_proxy_module.c Wed Apr 29 13:52:49 2015 +0300 +++ b/src/mail/ngx_mail_proxy_module.c Wed Apr 29 13:53:08 2015 +0300 @@ -111,7 +111,6 @@ void ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer) { - int keepalive; ngx_int_t rc; ngx_mail_proxy_ctx_t *p; ngx_mail_proxy_conf_t *pcf; @@ -121,18 +120,6 @@ cscf = ngx_mail_get_module_srv_conf(s, ngx_mail_core_module); - if (cscf->so_keepalive) { - keepalive = 1; - - if (setsockopt(s->connection->fd, SOL_SOCKET, SO_KEEPALIVE, - (const void *) &keepalive, sizeof(int)) - == -1) - { - ngx_log_error(NGX_LOG_ALERT, s->connection->log, ngx_socket_errno, - "setsockopt(SO_KEEPALIVE) failed"); - } - } - p = ngx_pcalloc(s->connection->pool, sizeof(ngx_mail_proxy_ctx_t)); if (p == NULL) { ngx_mail_session_internal_server_error(s);