imiphp / imi

imi 是一款支持长连接微服务分布式的 PHP 开发框架,它可以运行在 PHP-FPM、Swoole、Workerman、RoadRunner 等多种容器环境下。它支持 HttpApi、WebSocket、TCP、UDP、MQTT 服务的开发。特别适合互联网微服务、即时通讯聊天im、物联网等场景!QQ群:17916227
https://www.imiphp.com
Other
1.17k stars 169 forks source link

修复 ConnectionContextStore 初始化 #642

Closed Yurunsoft closed 12 months ago

Yurunsoft commented 1 year ago

设置了 @Bean(recursion=false),可以在 __init() 里执行初始化,避免启动时有大量请求进来,导致后续正确获取到正确的 Handler

codecov[bot] commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (47bf0a6) 65.47% compared to head (0df522d) 66.28%. Report is 3 commits behind head on 2.1.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 2.1 #642 +/- ## ============================================ + Coverage 65.47% 66.28% +0.80% Complexity 11260 11260 ============================================ Files 896 896 Lines 30676 30676 ============================================ + Hits 20086 20334 +248 + Misses 10590 10342 -248 ``` | [Files](https://app.codecov.io/gh/imiphp/imi/pull/642?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imiphp) | Coverage Δ | | |---|---|---| | [.../src/Server/ConnectionContext/Listener/AppInit.php](https://app.codecov.io/gh/imiphp/imi/pull/642?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imiphp#diff-c3JjL0NvbXBvbmVudHMvc3dvb2xlL3NyYy9TZXJ2ZXIvQ29ubmVjdGlvbkNvbnRleHQvTGlzdGVuZXIvQXBwSW5pdC5waHA=) | `100.00% <100.00%> (ø)` | | | [src/Server/ConnectionContext/StoreHandler.php](https://app.codecov.io/gh/imiphp/imi/pull/642?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imiphp#diff-c3JjL1NlcnZlci9Db25uZWN0aW9uQ29udGV4dC9TdG9yZUhhbmRsZXIucGhw) | `83.33% <100.00%> (ø)` | | ... and [16 files with indirect coverage changes](https://app.codecov.io/gh/imiphp/imi/pull/642/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=imiphp)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.