fix: don't panic RedisCache actor when result receiver is dropped #2
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
renovate-bot
renovate-security
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mCaptcha/libmcaptcha!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gh-17"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the caller of CachePoW/RetrivePoW/CacheResult/VerifyCaptchaResult
drops the oneshot receiver before the Redis operation completes (e.g.
the HTTP client disconnects mid-request), tx.send() fails and the
unwrap() panics inside the actor context. The actor dies and every
subsequent captcha verification on that instance fails with
"Actor mailbox error" until the process is restarted.
Ignore the send result instead, matching the existing idiom in
master/embedded/master.rs (RemoveCaptcha handler).
Courtesy of https://github.com/leeguooooo
7abe8d7df50783df997d