1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 06:16:09 -04:00

input channel was being closed too quickly

This commit is contained in:
Darien Raymond 2018-02-23 23:42:33 +01:00
parent af1abf687c
commit 61c258f2be
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -140,7 +140,7 @@ func (s *Server) transport(ctx context.Context, reader io.Reader, writer io.Writ
requestDone := signal.ExecuteAsync(func() error {
defer timer.SetTimeout(s.policy().Timeouts.DownlinkOnly)
defer common.Must(input.Close())
defer input.Close()
v2reader := buf.NewReader(reader)
if err := buf.Copy(v2reader, input, buf.UpdateActivity(timer)); err != nil {