Skip to content

[BUG] 两个网盘间传数据应用崩溃,报错panic: close of closed #2395

@a8502787

Description

@a8502787

Please confirm the following

  • I have read and agree to AGPL-3.0 Section 15 .
    The program is provided "as is" without any warranties; you bear all risks of using it.

  • I have read and agree to AGPL-3.0 Section 16 .
    The copyright holders and distributors are not liable for any damages resulting from the use or inability to use the program.

  • I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.

  • I have read the OpenList documentation.

  • I confirm there are no duplicate issues or discussions.

  • I confirm this is an OpenList issue, not caused by other reasons (such as network, dependencies, or operation).

  • I believe this issue must be handled by OpenList and not by a third party.

  • I confirm this issue is not fixed in the latest version.

  • I have not read these checkboxes and therefore I just ticked them all, Please close this issue.

OpenList Version (required)

v4.1.10

Storage Driver Used (required)

夸克和webdav

Bug Description (required)

运行的是飞牛os应用中心的openlist,夸克网盘夸克驱动挂载,123网盘使用webdav挂载,我在使用“桃桃她爸”应用对网盘进行迁移,夸克->123网盘,运行了一天了突然openlist异常退出,要去应用中心上重新启动。

Logs (required)

panic: close of closed channel

goroutine 1631902 [running]:
github.com/OpenListTeam/OpenList/v4/internal/net.(*downloader).interrupt(0x40005fe3c0)
/source/internal/net/request.go:289 +0x140
github.com/OpenListTeam/OpenList/v4/internal/net.MultiReadCloser.Close(...)
/source/internal/net/request.go:648
github.com/OpenListTeam/OpenList/v4/pkg/utils.(*Closers).Close(0x40002fdb58)
/source/pkg/utils/io.go:166 +0x7c
github.com/OpenListTeam/OpenList/v4/internal/stream.(*FileStream).Close(0x81f9ea0?)
/source/internal/stream/stream.go:60 +0xa0
github.com/OpenListTeam/OpenList/v4/internal/stream.(*ReaderUpdatingProgress).Close(0x81f9c20?)
/source/internal/stream/stream.go:414 +0x48
github.com/OpenListTeam/OpenList/v4/internal/stream.(*RateLimitReader).Close(0x400127af70?)
/source/internal/stream/limit.go:59 +0x48
net/http.(*readTrackingBody).Close(0x8000?)
/usr/local/go/src/net/http/transport.go:766 +0x2c
net/http.(*transferWriter).writeBody.func1()
/usr/local/go/src/net/http/transfer.go:345 +0x48
net/http.(*transferWriter).writeBody(0x4000b98d20, {0x6bdb4c0, 0x4000b0f140})
/usr/local/go/src/net/http/transfer.go:374 +0x330
net/http.(*Request).write(0x40008cd2c0, {0x6bdb4c0, 0x4000b0f140}, 0x0, 0x400139f320, 0x0)
/usr/local/go/src/net/http/request.go:762 +0x818
net/http.(*persistConn).writeLoop(0x400059b0e0)
/usr/local/go/src/net/http/transport.go:2600 +0xf4
created by net/http.(*Transport).dialConn in goroutine 1631831
/usr/local/go/src/net/http/transport.go:1945 +0x1164

Configuration File Content (required)

Image

Reproduction Link (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidInvalid Content/Cannot Reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions