diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2015-04-29 13:53:08 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2015-04-29 13:53:08 +0300 |
| commit | 3468015e12659a9f2d046a01264ee79af5c3c833 (patch) | |
| tree | ea011d4c52d2fc24c40429c2bbb1a7df887376b4 /src/mail/ngx_mail_proxy_module.c | |
| parent | ea2f4d91757e6aac3d085bc41a00c7fd48e89a7e (diff) | |
| download | nginx-3468015e12659a9f2d046a01264ee79af5c3c833.tar.gz nginx-3468015e12659a9f2d046a01264ee79af5c3c833.tar.bz2 | |
Removed the deprecated "so_keepalive" directive.
Diffstat (limited to '')
| -rw-r--r-- | src/mail/ngx_mail_proxy_module.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c index 41cbcf6e3..3802c3e67 100644 --- a/src/mail/ngx_mail_proxy_module.c +++ b/src/mail/ngx_mail_proxy_module.c @@ -111,7 +111,6 @@ static u_char smtp_auth_ok[] = "235 2.0.0 OK" CRLF; 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 @@ ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer) 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); |
