mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-01 16:18:24 +00:00
remove unused APIs.
This commit is contained in:
@@ -225,7 +225,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
|
||||
}
|
||||
output.Release()
|
||||
if request.Option.Has(protocol.RequestOptionChunkStream) {
|
||||
if err := bodyWriter.Write(alloc.NewLocalBuffer(32)); err != nil {
|
||||
if err := bodyWriter.Write(alloc.NewLocalBuffer(8)); err != nil {
|
||||
connection.SetReusable(false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ func (v *VMessOutboundHandler) handleRequest(session *encoding.ClientSession, co
|
||||
}
|
||||
|
||||
if request.Option.Has(protocol.RequestOptionChunkStream) {
|
||||
err := bodyWriter.Write(alloc.NewLocalBuffer(32))
|
||||
err := bodyWriter.Write(alloc.NewLocalBuffer(8))
|
||||
if err != nil {
|
||||
conn.SetReusable(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user