]> git.kaiwu.me - nginx.git/commitdiff
Removed unused flag unexpected_eof from ngx_connection_t.
authorRuslan Ermilov <ru@nginx.com>
Thu, 28 Apr 2016 13:30:19 +0000 (16:30 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 28 Apr 2016 13:30:19 +0000 (16:30 +0300)
src/core/ngx_connection.h
src/event/ngx_event_accept.c
src/event/ngx_event_acceptex.c
src/http/ngx_http_core_module.c

index b0d162ae081c1f2db7ecd9ae40d8ecfbe98fe053..6357c645d80493cf041f8bda3c4c643c116697ec 100644 (file)
@@ -169,7 +169,6 @@ struct ngx_connection_s {
 
     unsigned            log_error:3;     /* ngx_connection_log_error_e */
 
-    unsigned            unexpected_eof:1;
     unsigned            timedout:1;
     unsigned            error:1;
     unsigned            destroyed:1;
index 1c87a34d71cbc859b2edd5a962ef9a1d5a7343ab..14841c016fb30fccbdb3506dc03eb02ed1b98284 100644 (file)
@@ -217,8 +217,6 @@ ngx_event_accept(ngx_event_t *ev)
         c->local_sockaddr = ls->sockaddr;
         c->local_socklen = ls->socklen;
 
-        c->unexpected_eof = 1;
-
 #if (NGX_HAVE_UNIX_DOMAIN)
         if (c->sockaddr->sa_family == AF_UNIX) {
             c->tcp_nopush = NGX_TCP_NOPUSH_DISABLED;
index 1dbfd6ce92a45c3105e9112404975c2ba9520de4..e414fe4463f0ff0410276797c1e8700c2c840ed8 100644 (file)
@@ -159,8 +159,6 @@ ngx_event_post_acceptex(ngx_listening_t *ls, ngx_uint_t n)
         c->recv_chain = ngx_recv_chain;
         c->send_chain = ngx_send_chain;
 
-        c->unexpected_eof = 1;
-
         c->listening = ls;
 
         rev = c->read;
index bd36aeccc1df3fad2b305959b1bd8ade45aff1b1..e3c070f1634673b03ef8103f1da6ca2545725744 100644 (file)
@@ -793,8 +793,6 @@ ngx_http_handler(ngx_http_request_t *r)
 
     r->connection->log->action = NULL;
 
-    r->connection->unexpected_eof = 0;
-
     if (!r->internal) {
         switch (r->headers_in.connection_type) {
         case 0: