Explorar el Código

close input stream early

Darien Raymond hace 9 años
padre
commit
0f74c618de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      proxy/socks/server.go

+ 1 - 0
proxy/socks/server.go

@@ -303,6 +303,7 @@ func (this *Server) transport(reader io.Reader, writer io.Writer, session *proxy
 		defer v2reader.Release()
 
 		v2io.Pipe(v2reader, input)
+		input.Close()
 	}()
 
 	v2writer := v2io.NewAdaptiveWriter(writer)