Put the fd_index in the same order as the sibling list.

reviewable/pr4680/r2
Dan Born 9 years ago
parent 5d81d15260
commit 03c8a9b365
  1. 8
      src/core/iomgr/tcp_server_posix.c

@ -509,11 +509,9 @@ int grpc_tcp_server_add_port(grpc_tcp_server *s, const void *addr,
addr_len = sizeof(addr4_copy);
}
sp = add_socket_to_server(s, fd, addr, addr_len, port_index, fd_index);
if (sp2 != NULL) {
if (sp != NULL) {
sp->sibling = sp2;
}
sp2->is_sibling = 1;
if (sp2 != NULL && sp != NULL) {
sp2->sibling = sp;
sp->is_sibling = 1;
}
done:

Loading…
Cancel
Save