Ticket #1656: ngx_connection.c.patch

File ngx_connection.c.patch, 749 bytes (added by chronolaw@…, 8 years ago)
  • src/core/ngx_connection.c

    # HG changeset patch
    # User chronolaw <chronolaw@gmail.com>
    # Date 1539836512 -28800
    #      Thu Oct 18 12:21:52 2018 +0800
    # Node ID 7f75bc03620617a93185935a8f04db6e018c20e5
    # Parent  8b68d50090e4f134a35da60146fefd5e63770759
    Fix the bug of udp rbtree init in ngx_set_inherited_sockets
    
    diff -r 8b68d50090e4 -r 7f75bc036206 src/core/ngx_connection.c
    a b  
    214214
    215215        ls[i].addr_text.len = len;
    216216
     217#if !(NGX_WIN32)
     218        ngx_rbtree_init(&ls[i].rbtree, &ls[i].sentinel, ngx_udp_rbtree_insert_value);
     219#endif
     220
    217221        ls[i].backlog = NGX_LISTEN_BACKLOG;
    218222
    219223        olen = sizeof(int);