Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (accept_threads > 0) {
- if (0 == na->do_listen(BLOCKING, opt.f_inbound_transparent)) {
- for (int i=1; i < accept_threads; ++i) {
- NetAccept * a = na->clone();
- snprintf(thr_name, MAX_THREAD_NAME_LENGTH, "[ACCEPT %d:%d]", i-1, ats_ip_port_host_order(&accept_ip));
- a->init_accept_loop(thr_name);
- Debug("iocore_net_accept", "Created accept thread #%d for port %d", i, ats_ip_port_host_order(&accept_ip));
- }
- // Start the "template" accept thread last.
- Debug("iocore_net_accept", "Created accept thread #%d for port %d", accept_threads, ats_ip_port_host_order(&accept_ip));
- snprintf(thr_name, MAX_THREAD_NAME_LENGTH, "[ACCEPT %d:%d]", accept_threads-1, ats_ip_port_host_order(&accept_ip));
- na->init_accept_loop(thr_name);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement