You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/11/06 23:46:47 UTC
[trafficserver] branch 7.1.x updated: Fix #2761. NetHandler needs
to be initialized
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new 1ce0841 Fix #2761. NetHandler needs to be initialized
1ce0841 is described below
commit 1ce0841b1d162755a3ba84d86ef2292ce61b7f26
Author: Zizhong Zhang <zi...@linkedin.com>
AuthorDate: Fri Nov 3 16:36:28 2017 -0700
Fix #2761. NetHandler needs to be initialized
(cherry picked from commit 33cdce33b3abc2f3d0c78dae3ec61111e3ac0266)
---
iocore/net/UnixNet.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/net/UnixNet.cc b/iocore/net/UnixNet.cc
index 348beeb..6c793ed 100644
--- a/iocore/net/UnixNet.cc
+++ b/iocore/net/UnixNet.cc
@@ -215,6 +215,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>'].