AlistGo / AlistGo/alist

[本地存储]的mp4在线预览页面没有及时停止下载行为

未关闭
#7,257 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Go
星标
50.2k
派生
7.9k
平均合并
7 天 21 小时
30 天内合并 PR
6

描述

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [X] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [X] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [X] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

v3.37.4

### Driver used / 使用的存储驱动

本地存储

### Describe the bug / 问题描述

环境:通过 docker 部署的最新版本(v3.37.4),浏览器 Chrome 128.0.6613.139;

描述:本机存储方式挂载了一个磁盘,在预览一个 3.5G 的 mp4 视频时,会有一个正常的下载请求,此时通过点击顶部的导航返回到上层目录(离开预览页面),前面的下载请求没有停止,会一直在后台下载,直到下载完成或者刷新页面。

问题:如果频繁预览过多个大体积视频文件,会堆积在后台下载,导致预览其他视频时被占用了带宽。

预期:离开预览页面会停止下载。

### Reproduction / 复现链接

内网部署,无法提供链接。

### Config / 配置

均为默认配置,仅[本机存储]方式挂载一个本地目录。

### Logs / 日志

### 浏览器版本:
![image](https://github.com/user-attachments/assets/ac0d2ca3-508f-4cbc-8293-f95ffc7e8b25)

### 存储方式:
![image](https://github.com/user-attachments/assets/eb36632d-a5ec-4dcc-aeed-4fbb0aa8a97b)

### 预览页截图:
![image](https://github.com/user-attachments/assets/ce36009e-dabe-45f6-8dc8-3d71792adf22)

### 后台下载截图:
![image](https://github.com/user-attachments/assets/0f866df1-732f-4683-8e5a-64e5c78e4bf0)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。