Github user oknet commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/366#discussion_r46964787 --- Diff: iocore/net/UnixNetAccept.cc --- @@ -112,9 +106,17 @@ net_accept(NetAccept *na, void *ep, bool blockable) count = res; goto Ldone; } + + vc = (UnixNetVConnection *)na->getNetProcessor()->allocate_vc(e->ethread); + if (!vc) { + con.close(); + goto Ldone; + } + count++; - na->alloc_cache = NULL; - + NET_SUM_GLOBAL_DYN_STAT(net_connections_currently_open_stat, 1); + vc->id = net_next_connection_number(); + vc->con = con; --- End diff -- Connection::move() not existed, I'm set the con.fd to NO_FD to avoid con.fd closed by ~Connection()
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---