sharkleash commented on code in PR #10098:
URL: https://github.com/apache/trafficserver/pull/10098#discussion_r1330526574


##########
iocore/net/UnixNetAccept.cc:
##########
@@ -45,10 +43,14 @@ net_accept(NetAccept *na, void *ep, bool blockable)
   Event *e               = static_cast<Event *>(ep);
   int res                = 0;
   int count              = 0;
-  const int loop         = NetAccept::accept_till_done;
   UnixNetVConnection *vc = nullptr;
   Connection con;
 
+  EThread *t             = e->ethread;
+  NetHandler *handler    = get_NetHandler(t);
+  int config_value       = handler->config.additional_accepts;

Review Comment:
   not quite - it's a reloadable config, but I can still put the ternary 
operation in the `NetHandler` similar to where the config variable itself lives



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to