rename cached to buffered

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

No files matched your search

+2 -2
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)