HTTP client: Expose maximum time to keep alive idle connection with persistent connections
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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!
- Linguagem predominante
- PHP
- Estrelas
- 781
- Forks
- 166
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de reactphp/http
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 76/100
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
-
Roadmap to reactphp/http v3 Abertamaintenance
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
-
new feature
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
-
help wanted new feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Todas as issues de reactphp/http
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
-
Admissions heading updates Abertaa11y admissions.uiowa.edu needs grooming SiteImprove best practice
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Save States Menu Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
pluginsGLPI/datainjection#673 ·