mirror of https://github.com/v2ray/v2ray-core
small fixes
parent
292176c57f
commit
65a49e7fa0
|
@ -92,7 +92,7 @@ func (this *ProxyConnection) Read(b []byte) (int, error) {
|
||||||
|
|
||||||
func (this *ProxyConnection) Write(b []byte) (int, error) {
|
func (this *ProxyConnection) Write(b []byte) (int, error) {
|
||||||
if this.closed {
|
if this.closed {
|
||||||
return 0, errors.New("Proxy|Outbound: Writing into closed connection.")
|
return 0, io.ErrClosedPipe
|
||||||
}
|
}
|
||||||
return this.writer.Write(b)
|
return this.writer.Write(b)
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,7 +157,6 @@ func (this *VMessOutboundHandler) handleResponse(session *encoding.ClientSession
|
||||||
}
|
}
|
||||||
|
|
||||||
bodyReader.Release()
|
bodyReader.Release()
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue