Skip to content

Commit b35bbeb

Browse files
committed
Fix wording
1 parent 01091ba commit b35bbeb

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

components/client-common.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ See :doc:`/plugins/introduction`
8585
HttpClientPool
8686
--------------
8787

88-
This kind of client allows to send a request on a pool of ``HttpClient`` and/or ``HttpAsyncClient`̀`.
88+
This kind of client allows to send a request on a pool of ``HttpClient`` and/or ``HttpAsyncClient``.
8989

90-
You can attach http clients to this kind of client by using the ``addHttpClient`` method::
90+
You can attach HTTP clients to this kind of client by using the ``addHttpClient`` method::
9191

9292
use Http\Client\Common\HttpClientPool\LeastUsedClientPool;
9393
use Http\Discovery\HttpAsyncClientDiscovery;
@@ -107,13 +107,13 @@ You can attach http clients to this kind of client by using the ``addHttpClient`
107107

108108
Using this kind of client is useful is some use cases :
109109

110-
- When using a cluster (like a elasticsearch service with multiple master nodes)
110+
- When using a cluster (like a Elasticsearch service with multiple master nodes)
111111
- When you want to use fallback servers with the combination of the ``RetryPlugin`` (see :doc:`/plugins/retry`)
112112

113113
Each added client will be decorated by the ``HttpClientPoolItem`` class unless it's already an instance of this class.
114114
It allows the pool to be aware of the number processing requests in real time, and also deactivate a client on a error,
115-
it will be reenable automatically after a certain amount of time. However this behavior is not enabled by default (it
116-
reenable after 0 second, so after each request), but you can enable this behavior, client by client by directly using
115+
it will be reactivate automatically after a certain amount of time. However this behavior is not enable by default (it
116+
reactivate after 0 second, so after each request), but you can enable this behavior, client by client by directly using
117117
the ``HttpClientPoolItem`` class::
118118

119119
// Reenable after 30 seconds
@@ -130,13 +130,13 @@ LeastUsedClientPool
130130
``LeastUsedClientPool`` choose the client with less processing request in the pool. As it sounds the best strategy for
131131
sending a request on a pool of clients, the current implementation have some flaws :
132132

133-
- The counter is not shared between php process, so this strategy is not so useful in a web context, however it will make
134-
better sense in a php command line context.
133+
- The counter is not shared between PHP process, so this strategy is not so useful in a web context, however it will make
134+
better sense in a PHP command line context.
135135
- The counter of a request is decremented after each client call, so using this with the ``sendRequest`` method is
136136
useless, as the first client will always be at 0 after each call. It's better to use the async mechanism, with the
137137
``sendAsyncRequest`` method to correctly distribute requests across your pool.
138138

139-
A disabled client will be remove for the pool until it is reenable, if none are available it will throw a
139+
A deactivated client will be removed for the pool until it is reactivated, if none are available it will throw a
140140
``NotFoundHttpClientException`̀`
141141
142142
RoundRobinClientPool

spelling_word_list.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ boolean
55
callables
66
cURL
77
Diactoros
8+
Elasticsearch
89
fallback
910
GitHub
1011
hotfix
@@ -19,6 +20,7 @@ multipart
1920
param
2021
params
2122
profiler
23+
PHP
2224
Puli
2325
rebase
2426
Semver

0 commit comments

Comments
 (0)