You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2017/11/06 23:39:10 UTC
[trafficserver] branch master updated: Fix #2761. NetHandler needs
to be initialized
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 33cdce3 Fix #2761. NetHandler needs to be initialized
33cdce3 is described below
commit 33cdce33b3abc2f3d0c78dae3ec61111e3ac0266
Author: Zizhong Zhang <zi...@linkedin.com>
AuthorDate: Fri Nov 3 16:36:28 2017 -0700
Fix #2761. NetHandler needs to be initialized
---
iocore/net/UnixNet.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/net/UnixNet.cc b/iocore/net/UnixNet.cc
index 94ac15b..07b101f 100644
--- a/iocore/net/UnixNet.cc
+++ b/iocore/net/UnixNet.cc
@@ -212,6 +212,9 @@ initialize_thread_for_net(EThread *thread)
nh->mutex = new_ProxyMutex();
nh->thread = thread;
+ // This is needed to initialize NetHandler
+ thread->schedule_imm(nh);
+
PollCont *pc = get_PollCont(thread);
PollDescriptor *pd = pc->pollDescriptor;
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].