HTTP client: Expose maximum time to keep alive idle connection with persistent connections
まだ誰も着手していません。
評価
調査の方向性
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reactphp/http のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
maintenance
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
new feature
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
help wanted new feature
難易度 5/5 1週間以上 初心者へのやさしさ 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