1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 15:25:28 -05:00

rename cached to buffered

This commit is contained in:
Darien Raymond
2016-12-27 21:41:44 +01:00
parent 7d1426ff7f
commit c347e50c28
9 changed files with 43 additions and 40 deletions

View File

@@ -181,7 +181,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
userSettings := request.User.GetSettings()
connReader.SetTimeOut(userSettings.PayloadReadTimeout)
reader.SetCached(false)
reader.SetBuffered(false)
go func() {
bodyReader := session.DecodeRequestBody(request, reader)
@@ -216,7 +216,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
connection.SetReusable(false)
}
writer.SetCached(false)
writer.SetBuffered(false)
if err := buf.PipeUntilEOF(output, bodyWriter); err != nil {
log.Debug("VMess|Inbound: Error when sending data to downstream: ", err)