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


##########
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:
   If you change this to `... + 1`, then can use use `< instead of `<=` in the 
loop condition and avoid having to add the "+1" in multiple locations?



-- 
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