소스 검색

input channel was being closed too quickly

Darien Raymond 7 년 전
부모
커밋
61c258f2be
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      proxy/socks/server.go

+ 1 - 1
proxy/socks/server.go

@@ -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 {