Skip to content

Commit

Permalink
RequestFrame.Close() will close entire connection
Browse files Browse the repository at this point in the history
  • Loading branch information
徐志强 committed Jul 27, 2018
1 parent 835fc4e commit 37ff427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ff427

Please sign in to comment.