From 37ff4272252b972f2dcc0c1a03ce8d225f806f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=BF=97=E5=BC=BA?= Date: Fri, 27 Jul 2018 13:48:17 +0800 Subject: [PATCH] RequestFrame.Close() will close entire connection --- frame.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame.go b/frame.go index 80f3095..ecea208 100644 --- a/frame.go +++ b/frame.go @@ -70,7 +70,7 @@ func (r *RequestFrame) ConnectionInfo() *ConnectionInfo { func (r *RequestFrame) Close() error { ci := r.ctx.Value(ConnectionInfoKey).(*ConnectionInfo) - return ci.SC.GetWriter().ResetFrame(r.RequestID, 0) + return ci.SC.Close() } // Context for RequestFrame