mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
return proper error in drain
This commit is contained in:
parent
103cb48692
commit
badc77a7f7
@ -187,8 +187,7 @@ func (m *Client) Dispatch(ctx context.Context, outboundRay ray.OutboundRay) bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
func drain(reader io.Reader) error {
|
func drain(reader io.Reader) error {
|
||||||
buf.Copy(NewStreamReader(reader), buf.Discard)
|
return buf.Copy(NewStreamReader(reader), buf.Discard)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Client) handleStatueKeepAlive(meta *FrameMetadata, reader io.Reader) error {
|
func (m *Client) handleStatueKeepAlive(meta *FrameMetadata, reader io.Reader) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user