Redis连接失效后,报错 Server internal error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with vendor/topthink/think-cache/src/cache/driver/Redis.php at line 112 and review how Redis errors are handled after the server restarts. Reproduce the failure by restarting Redis during an active connection, then determine how webman can monitor the invalid connection and reconnect. Done means the application recovers without a prolonged interruption or process restart.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
redis 重启后,连接失效,
ErrorException: Redis::get(): send of 52 bytes failed with errno=10054 远程主机强迫关闭了一个现有的连接。
in xxxxxxxxxxxxxxxxxxx\vendor\topthink\think-cache\src\cache\driver\Redis.php:112
应该是think-cache没有重连功能
think-cache 1.1版本 redis没有实现断线重连
异常多次后, webman 进程会重启,功能又正常,但中间会有段时间应用中断,think-cache是指望不上了,多年不更新
能否在webman这边做监控,链接失效马上重连
- Lingua principale
- PHP
- Stelle
- 3
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webman-php/think-cache
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 32/100
webman-php/think-cache#7 · 11 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
Tutte le issue di webman-php/think-cache
Issue simili
-
tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
UX
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
OpenConext/OpenConext-engineblock#2122 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/safe-publish#594 ·