Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Redis连接失效后,报错 Server internal error

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, redis
領域
backend, databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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这边做监控,链接失效马上重连

主要言語
PHP
スター
3
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

webman-php/think-cache のほかの issue

webman-php/think-cache の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。