You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/10/13 03:46:09 UTC
[trafficserver] branch master updated: TS-4961: Use default accept
thread config for plugin accepts.
This is an automated email from the ASF dual-hosted git repository.
jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 0357eee TS-4961: Use default accept thread config for plugin accepts.
0357eee is described below
commit 0357eee2229b0de6bb784635c4601404463340b0
Author: James Peach <jp...@apache.org>
AuthorDate: Wed Oct 12 12:06:15 2016 -0700
TS-4961: Use default accept thread config for plugin accepts.
Since TSPortDescriptorAccept and TSPluginDescriptorAccept don't have
a way to specify the number of threads, pass -1 to make_net_accept()
so that it uses the default from proxy.config.accept_threads.
---
proxy/InkAPI.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 17a07fd..34cd334 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -8942,7 +8942,7 @@ TSPortDescriptorAccept(TSPortDescriptor descp, TSCont contp)
{
Action *action = NULL;
HttpProxyPort *port = (HttpProxyPort *)descp;
- NetProcessor::AcceptOptions net(make_net_accept_options(port, 0 /* nthreads */));
+ NetProcessor::AcceptOptions net(make_net_accept_options(port, -1 /* nthreads */));
if (port->isSSL()) {
action = sslNetProcessor.main_accept((INKContInternal *)contp, port->m_fd, net);
@@ -8962,7 +8962,7 @@ TSPluginDescriptorAccept(TSCont contp)
for (int i = 0, n = proxy_ports.length(); i < n; ++i) {
HttpProxyPort &port = proxy_ports[i];
if (port.isPlugin()) {
- NetProcessor::AcceptOptions net(make_net_accept_options(&port, 0 /* nthreads */));
+ NetProcessor::AcceptOptions net(make_net_accept_options(&port, -1 /* nthreads */));
action = netProcessor.main_accept((INKContInternal *)contp, port.m_fd, net);
}
}
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].