|
|
@ -148,7 +148,7 @@ func (this *VMessInboundHandler) HandleConnection(connection *hub.TCPConn) {
|
|
|
|
defer close(input)
|
|
|
|
defer close(input)
|
|
|
|
defer readFinish.Unlock()
|
|
|
|
defer readFinish.Unlock()
|
|
|
|
bodyReader := session.DecodeRequestBody(reader)
|
|
|
|
bodyReader := session.DecodeRequestBody(reader)
|
|
|
|
var requestReader v2io.ReleasableReader
|
|
|
|
var requestReader v2io.Reader
|
|
|
|
if request.Option.IsChunkStream() {
|
|
|
|
if request.Option.IsChunkStream() {
|
|
|
|
requestReader = vmessio.NewAuthChunkReader(bodyReader)
|
|
|
|
requestReader = vmessio.NewAuthChunkReader(bodyReader)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -179,7 +179,7 @@ func (this *VMessInboundHandler) HandleConnection(connection *hub.TCPConn) {
|
|
|
|
|
|
|
|
|
|
|
|
writer.SetCached(false)
|
|
|
|
writer.SetCached(false)
|
|
|
|
go func(finish *sync.Mutex) {
|
|
|
|
go func(finish *sync.Mutex) {
|
|
|
|
var writer v2io.ReleasableWriter = v2io.NewAdaptiveWriter(bodyWriter)
|
|
|
|
var writer v2io.Writer = v2io.NewAdaptiveWriter(bodyWriter)
|
|
|
|
if request.Option.IsChunkStream() {
|
|
|
|
if request.Option.IsChunkStream() {
|
|
|
|
writer = vmessio.NewAuthChunkWriter(writer)
|
|
|
|
writer = vmessio.NewAuthChunkWriter(writer)
|
|
|
|
}
|
|
|
|
}
|
|
|
|