HTTP client: Expose maximum time to keep alive idle connection with persistent connections
還沒有人認領這個 Issue。
評估
研究方向
Start with src/Io/ClientConnectionManager.php, where $maximumTimeToKeepAliveIdleConnection is defined, then trace how the client, transaction, and sender objects expose connection configuration. Done means the maximum idle-connection time can be configured for persistent HTTP client communication without requiring direct edits to the connection manager.
由索引模型根據 Issue 內容生成。
描述
Hi there!
Good job with taking care of https://github.com/reactphp/http/issues/468. Having the ability to use persistent connections is definitely a game changer for some use cases!
I was wondering if it would be a good idea to expose the $maximumTimeToKeepAliveIdleConnection variable (https://github.com/reactphp/http/blob/1.x/src/Io/ClientConnectionManager.php line 39) in order to support ongoing communication with a webserver, especially with REST API and architectures such as OpenResty.
I'm aware it represents some work as a lot of objects have to be exposed (client, transaction, sender, etc.), but I was wondering if it would be worth it for that particular use case. I noticed an improvement of 100ms per chained request on average by changing the timeout from 1ms to 10s.
Is there a reason why connections are considered idle only under 1ms? I think it might be too low (which is the reason why I'm flagging this as an issue and not a suggestion).
Thanks a lot for ReactPHP!
- 主要語言
- PHP
- 星號
- 781
- 分支
- 166
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
reactphp/http 的其他 Issue
-
bug
難度 3/5 1-2 天 新手友好度 76/100
-
bug
難度 3/5 1-2 天 新手友好度 35/100
-
maintenance
難度 5/5 一週以上 新手友好度 20/100
-
new feature
難度 4/5 3-5 天 新手友好度 48/100
-
help wanted new feature
難度 5/5 一週以上 新手友好度 25/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
getgrav/grav-plugin-api#45 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
RSS-Bridge/rss-bridge#5098 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
phingofficial/phing#2025 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
silverstripe/developer-docs#911 ·
-
難度 2/5 1-3 小時 新手友好度 74/100