mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
Event connect: don't penalize AF_INET6 connections.
Problems with setsockopt(TCP_NODELAY) and setsockopt(TCP_NOPUSH), as well as sendfile() syscall on Solaris, are specific to UNIX-domain sockets. Other address families, i.e. AF_INET and AF_INET6, are fine.
This commit is contained in:
parent
c2bb76515b
commit
3b9e7adcf4
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ ngx_event_connect_peer(ngx_peer_connection_t *pc)
|
|||
|
||||
c->log_error = pc->log_error;
|
||||
|
||||
if (pc->sockaddr->sa_family != AF_INET) {
|
||||
if (pc->sockaddr->sa_family == AF_UNIX) {
|
||||
c->tcp_nopush = NGX_TCP_NOPUSH_DISABLED;
|
||||
c->tcp_nodelay = NGX_TCP_NODELAY_DISABLED;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue