ResponseStream.Close() will set header field to nil, but header feild may be concurrently accessed by the ResponseStream.Run() which is executed in another goroutine.
The defer/recover pattern does not slove that problem, and may cause resource leaking.
It' s not safe to close a running ResponseStream.
ResponseStream.Close() will set header field to nil, but header feild may be concurrently accessed by the ResponseStream.Run() which is executed in another goroutine.
The defer/recover pattern does not slove that problem, and may cause resource leaking.