mongodb偶尔会出现Connection refused

未关闭
#54 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go, mongodb, php
领域
backend, databases

调研方向

未指定源文件或测试。首先使用 PHP 7.4.28、Swoole 4.8.5 和 gotask v2.2.9 复现与 tcp://127.0.0.1:6012 的间歇性连接,然后跟踪 MongoDB 连接路径。完成的标准是确定拒绝的原因,并验证连接不再间歇性失败。

由索引模型根据 Issue 内容生成。

描述

偶尔出现报错:unable to establish connection tcp://127.0.0.1:6012: Connection refused (111)

PHP版本:7.4.28

swoole:

Swoole => enabled
Author => Swoole Team <[email protected]>
Version => 4.8.5
Built => May  9 2022 18:04:04
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.0.2k-fips  26 Jan 2017
http2 => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

gotask版本:v2.2.9

主要语言
PHP
星标
255
派生
29
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperf/gotask 的其他 Issue

查看 hyperf/gotask 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。