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/05/23 22:23:11 UTC
[trafficserver] 03/03: coredump_handleEvent fix
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
commit 06aa64e4de9a32a0d7756d258e1ee3ab7fc75a0e
Author: scw00 <61...@qq.com>
AuthorDate: Mon May 22 15:37:50 2017 +0800
coredump_handleEvent fix
(cherry picked from commit 7a719779ea1cb9e14f658ce551fae3342fa7e110)
---
iocore/net/UnixNetVConnection.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index 79cc756..f9c172c 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -773,6 +773,7 @@ UnixNetVConnection::do_io_shutdown(ShutdownHowTo_t howto)
read.enabled = 0;
read.vio.buffer.clear();
read.vio.nbytes = 0;
+ read.vio._cont = nullptr;
f.shutdown = NET_VC_SHUTDOWN_READ;
break;
case IO_SHUTDOWN_WRITE:
@@ -780,6 +781,7 @@ UnixNetVConnection::do_io_shutdown(ShutdownHowTo_t howto)
write.enabled = 0;
write.vio.buffer.clear();
write.vio.nbytes = 0;
+ write.vio._cont = nullptr;
f.shutdown = NET_VC_SHUTDOWN_WRITE;
break;
case IO_SHUTDOWN_READWRITE:
@@ -790,6 +792,8 @@ UnixNetVConnection::do_io_shutdown(ShutdownHowTo_t howto)
read.vio.nbytes = 0;
write.vio.buffer.clear();
write.vio.nbytes = 0;
+ read.vio._cont = nullptr;
+ write.vio._cont = nullptr;
f.shutdown = NET_VC_SHUTDOWN_READ | NET_VC_SHUTDOWN_WRITE;
break;
default:
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.