Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复115驱动数据竞争导致的crash #5253

Merged
merged 1 commit into from Sep 21, 2023

Conversation

Ovear
Copy link
Contributor

@Ovear Ovear commented Sep 20, 2023

115驱动中一直修改resty clientUserAgent,产生了数据竞争;在多线程情况下会导致resty处理request header时产生fatal error导致crash

fatal error: concurrent map iteration and map write

goroutine 48178 [running]:
github.com/go-resty/resty/v2.parseRequestHeader(0xc0006fe000, 0xc000d42680)
        /root/go/pkg/mod/github.com/go-resty/resty/v2@v2.7.0/middleware.go:104 +0x87

@xhofe xhofe merged commit 2a6ab77 into alist-org:main Sep 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants