Skip to content

Commit 2b12d0b

Browse files
Fix typos (#1752)
* Fix typos * Fix Failing Github Actions Tests (#1753) * Bump GitHub Actions runner version to Ubuntu 20.04 * AsyncStreamHandlerTest.asyncOptionsTest - Allow for the appearance of the TRACE method in the server's response * MaxTotalConnectionTest.testMaxTotalConnections - https://github.com --> https://www.youtube.com, https://google.com --> https://www.google.com * TextMessageTest.onFailureTest - Refactor logic for more granular testing (accept ConnectException in addition to UnknownHostException, but check for "DNS Name not found" in exception cause) Co-authored-by: Tom Granot <[email protected]>
1 parent a1ea371 commit 2b12d0b

File tree

23 files changed

+54
-54
lines changed

23 files changed

+54
-54
lines changed

Diff for: client/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public interface AsyncHttpClientConfig {
255255
String[] getEnabledCipherSuites();
256256

257257
/**
258-
* @return if insecured cipher suites must be filtered out (only used when not explicitly passing enabled cipher suites)
258+
* @return if insecure cipher suites must be filtered out (only used when not explicitly passing enabled cipher suites)
259259
*/
260260
boolean isFilterInsecureCipherSuites();
261261

Diff for: client/src/main/java/org/asynchttpclient/handler/resumable/ResumableListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface ResumableListener {
2929
void onBytesReceived(ByteBuffer byteBuffer) throws IOException;
3030

3131
/**
32-
* Invoked when all the bytes has been sucessfully transferred.
32+
* Invoked when all the bytes has been successfully transferred.
3333
*/
3434
void onAllBytesReceived();
3535

Diff for: client/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,15 @@ private SslHandler createSslHandler(String peerHost, int peerPort) {
342342

343343
public Future<Channel> updatePipelineForHttpTunneling(ChannelPipeline pipeline, Uri requestUri) {
344344

345-
Future<Channel> whenHanshaked = null;
345+
Future<Channel> whenHandshaked = null;
346346

347347
if (pipeline.get(HTTP_CLIENT_CODEC) != null)
348348
pipeline.remove(HTTP_CLIENT_CODEC);
349349

350350
if (requestUri.isSecured()) {
351351
if (!isSslHandlerConfigured(pipeline)) {
352352
SslHandler sslHandler = createSslHandler(requestUri.getHost(), requestUri.getExplicitPort());
353-
whenHanshaked = sslHandler.handshakeFuture();
353+
whenHandshaked = sslHandler.handshakeFuture();
354354
pipeline.addBefore(INFLATER_HANDLER, SSL_HANDLER, sslHandler);
355355
}
356356
pipeline.addAfter(SSL_HANDLER, HTTP_CLIENT_CODEC, newHttpClientCodec());
@@ -368,7 +368,7 @@ public Future<Channel> updatePipelineForHttpTunneling(ChannelPipeline pipeline,
368368

369369
pipeline.remove(AHC_HTTP_HANDLER);
370370
}
371-
return whenHanshaked;
371+
return whenHandshaked;
372372
}
373373

374374
public SslHandler addSslHandler(ChannelPipeline pipeline, Uri uri, String virtualHost, boolean hasSocksProxyHandler) {

Diff for: client/src/main/java/org/asynchttpclient/request/body/multipart/FileLikePart.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public abstract class FileLikePart extends PartBase {
4747
* @param charset the charset encoding for this part
4848
* @param fileName the fileName
4949
* @param contentId the content id
50-
* @param transfertEncoding the transfer encoding
50+
* @param transferEncoding the transfer encoding
5151
*/
52-
public FileLikePart(String name, String contentType, Charset charset, String fileName, String contentId, String transfertEncoding) {
52+
public FileLikePart(String name, String contentType, Charset charset, String fileName, String contentId, String transferEncoding) {
5353
super(name,
5454
computeContentType(contentType, fileName),
5555
charset,
5656
contentId,
57-
transfertEncoding);
57+
transferEncoding);
5858
this.fileName = fileName;
5959
}
6060

Diff for: client/src/main/java/org/asynchttpclient/request/body/multipart/PartBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public String toString() {
127127
" name=" + getName() +
128128
" contentType=" + getContentType() +
129129
" charset=" + getCharset() +
130-
" tranferEncoding=" + getTransferEncoding() +
130+
" transferEncoding=" + getTransferEncoding() +
131131
" contentId=" + getContentId() +
132132
" dispositionType=" + getDispositionType();
133133
}

Diff for: client/src/main/java/org/asynchttpclient/spnego/NamePasswordCallbackHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected boolean handleCallback(Callback callback) {
5757
/*
5858
* This method is called from the handle(Callback[]) method when the specified callback
5959
* did not match any of the known callback classes. It looks for the callback method
60-
* having the specified method name with one of the suppported parameter types.
60+
* having the specified method name with one of the supported parameter types.
6161
* If found, it invokes the callback method on the object and returns true.
6262
* If not, it returns false.
6363
*/

Diff for: client/src/main/java/org/asynchttpclient/util/StringBuilderPool.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class StringBuilderPool {
1919
private final ThreadLocal<StringBuilder> pool = ThreadLocal.withInitial(() -> new StringBuilder(512));
2020

2121
/**
22-
* BEWARE: MUSN'T APPEND TO ITSELF!
22+
* BEWARE: MUSTN'T APPEND TO ITSELF!
2323
*
2424
* @return a pooled StringBuilder
2525
*/

Diff for: client/src/test/java/org/asynchttpclient/BasicAuthTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void setUpGlobal() throws Exception {
6565
server2.start();
6666
port2 = connector2.getLocalPort();
6767

68-
// need noAuth server to verify the preemptive auth mode (see basicAuthTestPreemtiveTest)
68+
// need noAuth server to verify the preemptive auth mode (see basicAuthTestPreemptiveTest)
6969
serverNoAuth = new Server();
7070
ServerConnector connectorNoAuth = addHttpConnector(serverNoAuth);
7171
serverNoAuth.setHandler(new SimpleHandler());
@@ -170,7 +170,7 @@ public Integer onCompleted() {
170170
}
171171

172172
@Test
173-
public void basicAuthTestPreemtiveTest() throws IOException, ExecutionException, TimeoutException, InterruptedException {
173+
public void basicAuthTestPreemptiveTest() throws IOException, ExecutionException, TimeoutException, InterruptedException {
174174
try (AsyncHttpClient client = asyncHttpClient()) {
175175
// send the request to the no-auth endpoint to be able to verify the
176176
// auth header is really sent preemptively for the initial call.

Diff for: client/src/test/java/org/asynchttpclient/BasicHttpTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ public void onThrowable(Throwable t) {
788788
}
789789

790790
@Test
791-
public void nonBlockingNestedRequetsFromIoThreadAreFine() throws Throwable {
791+
public void nonBlockingNestedRequestsFromIoThreadAreFine() throws Throwable {
792792
withClient().run(client ->
793793
withServer(server).run(server -> {
794794

Diff for: client/src/test/java/org/asynchttpclient/handler/resumable/PropertiesBasedResumableProcesserTest.java renamed to client/src/test/java/org/asynchttpclient/handler/resumable/PropertiesBasedResumableProcessorTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* @author Benjamin Hanzelmann
2323
*/
24-
public class PropertiesBasedResumableProcesserTest {
24+
public class PropertiesBasedResumableProcessorTest {
2525

2626
@Test
2727
public void testSaveLoad() {

Diff for: client/src/test/java/org/asynchttpclient/reactivestreams/ReactiveStreamsDownloadTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static protected class SimpleStreamedAsyncHandler implements StreamedAsyncHandle
9393

9494
@Override
9595
public State onStream(Publisher<HttpResponseBodyPart> publisher) {
96-
LOGGER.debug("SimpleStreamedAsyncHandleronCompleted onStream");
96+
LOGGER.debug("SimpleStreamedAsyncHandlerOnCompleted onStream");
9797
publisher.subscribe(subscriber);
9898
return State.CONTINUE;
9999
}
@@ -105,7 +105,7 @@ public void onThrowable(Throwable t) {
105105

106106
@Override
107107
public State onBodyPartReceived(HttpResponseBodyPart bodyPart) {
108-
LOGGER.debug("SimpleStreamedAsyncHandleronCompleted onBodyPartReceived");
108+
LOGGER.debug("SimpleStreamedAsyncHandlerOnCompleted onBodyPartReceived");
109109
throw new AssertionError("Should not have received body part");
110110
}
111111

@@ -121,7 +121,7 @@ public State onHeadersReceived(HttpHeaders headers) {
121121

122122
@Override
123123
public SimpleStreamedAsyncHandler onCompleted() {
124-
LOGGER.debug("SimpleStreamedAsyncHandleronCompleted onSubscribe");
124+
LOGGER.debug("SimpleStreamedAsyncHandlerOnCompleted onSubscribe");
125125
return this;
126126
}
127127

Diff for: client/src/test/java/org/asynchttpclient/request/body/ChunkingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class ChunkingTest extends AbstractBasicTest {
3434

3535
// So we can just test the returned data is the image,
36-
// and doesn't contain the chunked delimeters.
36+
// and doesn't contain the chunked delimiters.
3737
@Test
3838
public void testBufferLargerThanFileWithStreamBodyGenerator() throws Throwable {
3939
doTestWithInputStreamBodyGenerator(new BufferedInputStream(Files.newInputStream(LARGE_IMAGE_FILE.toPath()), 400000));

Diff for: client/src/test/java/org/asynchttpclient/request/body/FilePartLargeFileTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void handle(String target, Request baseRequest, HttpServletRequest req, H
5151
total += count;
5252
}
5353
resp.setStatus(200);
54-
resp.addHeader("X-TRANFERED", String.valueOf(total));
54+
resp.addHeader("X-TRANSFERRED", String.valueOf(total));
5555
resp.getOutputStream().flush();
5656
resp.getOutputStream().close();
5757

Diff for: client/src/test/java/org/asynchttpclient/request/body/TransferListenerTest.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public void basicPutFileTest() throws Exception {
9898
final AtomicReference<Throwable> throwable = new AtomicReference<>();
9999
final AtomicReference<HttpHeaders> hSent = new AtomicReference<>();
100100
final AtomicReference<HttpHeaders> hRead = new AtomicReference<>();
101-
final AtomicInteger bbReceivedLenght = new AtomicInteger(0);
102-
final AtomicLong bbSentLenght = new AtomicLong(0L);
101+
final AtomicInteger bbReceivedLength = new AtomicInteger(0);
102+
final AtomicLong bbSentLength = new AtomicLong(0L);
103103

104104
final AtomicBoolean completed = new AtomicBoolean(false);
105105

@@ -120,11 +120,11 @@ public void onResponseHeadersReceived(HttpHeaders headers) {
120120
}
121121

122122
public void onBytesReceived(byte[] b) {
123-
bbReceivedLenght.addAndGet(b.length);
123+
bbReceivedLength.addAndGet(b.length);
124124
}
125125

126126
public void onBytesSent(long amount, long current, long total) {
127-
bbSentLenght.addAndGet(amount);
127+
bbSentLength.addAndGet(amount);
128128
}
129129

130130
public void onRequestResponseCompleted() {
@@ -142,8 +142,8 @@ public void onThrowable(Throwable t) {
142142
assertEquals(response.getStatusCode(), 200);
143143
assertNotNull(hRead.get());
144144
assertNotNull(hSent.get());
145-
assertEquals(bbReceivedLenght.get(), file.length(), "Number of received bytes incorrect");
146-
assertEquals(bbSentLenght.get(), file.length(), "Number of sent bytes incorrect");
145+
assertEquals(bbReceivedLength.get(), file.length(), "Number of received bytes incorrect");
146+
assertEquals(bbSentLength.get(), file.length(), "Number of sent bytes incorrect");
147147
}
148148
}
149149

@@ -153,8 +153,8 @@ public void basicPutFileBodyGeneratorTest() throws Exception {
153153
final AtomicReference<Throwable> throwable = new AtomicReference<>();
154154
final AtomicReference<HttpHeaders> hSent = new AtomicReference<>();
155155
final AtomicReference<HttpHeaders> hRead = new AtomicReference<>();
156-
final AtomicInteger bbReceivedLenght = new AtomicInteger(0);
157-
final AtomicLong bbSentLenght = new AtomicLong(0L);
156+
final AtomicInteger bbReceivedLength = new AtomicInteger(0);
157+
final AtomicLong bbSentLength = new AtomicLong(0L);
158158

159159
final AtomicBoolean completed = new AtomicBoolean(false);
160160

@@ -172,11 +172,11 @@ public void onResponseHeadersReceived(HttpHeaders headers) {
172172
}
173173

174174
public void onBytesReceived(byte[] b) {
175-
bbReceivedLenght.addAndGet(b.length);
175+
bbReceivedLength.addAndGet(b.length);
176176
}
177177

178178
public void onBytesSent(long amount, long current, long total) {
179-
bbSentLenght.addAndGet(amount);
179+
bbSentLength.addAndGet(amount);
180180
}
181181

182182
public void onRequestResponseCompleted() {
@@ -194,8 +194,8 @@ public void onThrowable(Throwable t) {
194194
assertEquals(response.getStatusCode(), 200);
195195
assertNotNull(hRead.get());
196196
assertNotNull(hSent.get());
197-
assertEquals(bbReceivedLenght.get(), file.length(), "Number of received bytes incorrect");
198-
assertEquals(bbSentLenght.get(), file.length(), "Number of sent bytes incorrect");
197+
assertEquals(bbReceivedLength.get(), file.length(), "Number of received bytes incorrect");
198+
assertEquals(bbSentLength.get(), file.length(), "Number of sent bytes incorrect");
199199
}
200200
}
201201

Diff for: client/src/test/java/org/asynchttpclient/request/body/multipart/MultipartBodyTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ public int write(ByteBuffer src) {
122122
public void transferWithCopy() throws Exception {
123123
for (int bufferLength = 1; bufferLength < MAX_MULTIPART_CONTENT_LENGTH_ESTIMATE + 1; bufferLength++) {
124124
try (MultipartBody multipartBody = buildMultipart()) {
125-
long tranferred = transferWithCopy(multipartBody, bufferLength);
126-
assertEquals(tranferred, multipartBody.getContentLength());
125+
long transferred = transferWithCopy(multipartBody, bufferLength);
126+
assertEquals(transferred, multipartBody.getContentLength());
127127
}
128128
}
129129
}
@@ -132,8 +132,8 @@ public void transferWithCopy() throws Exception {
132132
public void transferZeroCopy() throws Exception {
133133
for (int bufferLength = 1; bufferLength < MAX_MULTIPART_CONTENT_LENGTH_ESTIMATE + 1; bufferLength++) {
134134
try (MultipartBody multipartBody = buildMultipart()) {
135-
long tranferred = transferZeroCopy(multipartBody, bufferLength);
136-
assertEquals(tranferred, multipartBody.getContentLength());
135+
long transferred = transferZeroCopy(multipartBody, bufferLength);
136+
assertEquals(transferred, multipartBody.getContentLength());
137137
}
138138
}
139139
}

Diff for: client/src/test/java/org/asynchttpclient/request/body/multipart/part/MultipartPartTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ private class TestFileLikePart extends FileLikePart {
239239
this(name, contentType, charset, contentId, null);
240240
}
241241

242-
TestFileLikePart(String name, String contentType, Charset charset, String contentId, String transfertEncoding) {
243-
this(name, contentType, charset, contentId, transfertEncoding, null);
242+
TestFileLikePart(String name, String contentType, Charset charset, String contentId, String transferEncoding) {
243+
this(name, contentType, charset, contentId, transferEncoding, null);
244244
}
245245

246-
TestFileLikePart(String name, String contentType, Charset charset, String contentId, String transfertEncoding, String fileName) {
247-
super(name, contentType, charset, fileName, contentId, transfertEncoding);
246+
TestFileLikePart(String name, String contentType, Charset charset, String contentId, String transferEncoding, String fileName) {
247+
super(name, contentType, charset, fileName, contentId, transferEncoding);
248248
}
249249
}
250250

Diff for: extras/guava/src/main/java/org/asynchttpclient/extras/guava/RateLimitedThrottleRequestFilter.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* {@link ThrottleRequestFilter} by allowing rate limiting per second in addition to the
1414
* number of concurrent connections.
1515
* <p>
16-
* The <code>maxWaitMs</code> argument is respected accross both permit acquistions. For
16+
* The <code>maxWaitMs</code> argument is respected across both permit acquisitions. For
1717
* example, if 1000 ms is given, and the filter spends 500 ms waiting for a connection,
1818
* it will only spend another 500 ms waiting for the rate limiter.
1919
*/
@@ -44,9 +44,9 @@ public <T> FilterContext<T> filter(FilterContext<T> ctx) throws FilterException
4444
}
4545

4646
long startOfWait = System.currentTimeMillis();
47-
attemptConcurrencyPermitAcquistion(ctx);
47+
attemptConcurrencyPermitAcquisition(ctx);
4848

49-
attemptRateLimitedPermitAcquistion(ctx, startOfWait);
49+
attemptRateLimitedPermitAcquisition(ctx, startOfWait);
5050
} catch (InterruptedException e) {
5151
throw new FilterException(String.format("Interrupted Request %s with AsyncHandler %s", ctx.getRequest(), ctx.getAsyncHandler()));
5252
}
@@ -56,7 +56,7 @@ public <T> FilterContext<T> filter(FilterContext<T> ctx) throws FilterException
5656
.build();
5757
}
5858

59-
private <T> void attemptRateLimitedPermitAcquistion(FilterContext<T> ctx, long startOfWait) throws FilterException {
59+
private <T> void attemptRateLimitedPermitAcquisition(FilterContext<T> ctx, long startOfWait) throws FilterException {
6060
long wait = getMillisRemainingInMaxWait(startOfWait);
6161

6262
if (!rateLimiter.tryAcquire(wait, TimeUnit.MILLISECONDS)) {
@@ -65,7 +65,7 @@ private <T> void attemptRateLimitedPermitAcquistion(FilterContext<T> ctx, long s
6565
}
6666
}
6767

68-
private <T> void attemptConcurrencyPermitAcquistion(FilterContext<T> ctx) throws InterruptedException, FilterException {
68+
private <T> void attemptConcurrencyPermitAcquisition(FilterContext<T> ctx) throws InterruptedException, FilterException {
6969
if (!available.tryAcquire(maxWaitMs, TimeUnit.MILLISECONDS)) {
7070
throw new FilterException(String.format("No slot available for processing Request %s with AsyncHandler %s", ctx.getRequest(),
7171
ctx.getAsyncHandler()));

Diff for: extras/registry/src/main/java/org/asynchttpclient/extras/registry/AsyncHttpClientFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* an instance of that class. If there is an exception while reading the
3434
* properties file or system property it throws a RuntimeException
3535
* AsyncHttpClientImplException. If any of the constructors of the instance
36-
* throws an exception it thows a AsyncHttpClientImplException. By default if
36+
* throws an exception it throws a AsyncHttpClientImplException. By default if
3737
* neither the system property or the property file exists then it will return
3838
* the default instance of {@link DefaultAsyncHttpClient}
3939
*/

Diff for: extras/rxjava2/src/main/java/org/asynchttpclient/extras/rxjava2/RxHttpClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ default Maybe<Response> prepare(Request request) {
5757
* @param request the request that is to be executed
5858
* @param handlerSupplier supplies the desired {@code AsyncHandler} instances that are used to produce results
5959
* @return a {@code Maybe} that executes {@code request} upon subscription and that emits the results produced by
60-
* the supplied handers
60+
* the supplied handlers
6161
* @throws NullPointerException if at least one of the parameters is {@code null}
6262
*/
6363
<T> Maybe<T> prepare(Request request, Supplier<? extends AsyncHandler<T>> handlerSupplier);

Diff for: extras/rxjava2/src/main/java/org/asynchttpclient/extras/rxjava2/maybe/AbstractMaybeAsyncHandlerBridge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public State onTrailingHeadersReceived(HttpHeaders headers) throws Exception {
9494
* {@inheritDoc}
9595
* <p>
9696
* <p>
97-
* The value returned by the wrapped {@code AsyncHandler} won't be returned by this method, but emtited via RxJava.
97+
* The value returned by the wrapped {@code AsyncHandler} won't be returned by this method, but emitted via RxJava.
9898
* </p>
9999
*
100100
* @return always {@code null}

Diff for: extras/rxjava2/src/test/java/org/asynchttpclient/extras/rxjava2/DefaultRxHttpClientTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class DefaultRxHttpClientTest {
6161
private ArgumentCaptor<AsyncHandler<Object>> handlerCaptor;
6262

6363
@Mock
64-
private ListenableFuture<Object> resposeFuture;
64+
private ListenableFuture<Object> responseFuture;
6565

6666
@InjectMocks
6767
private DefaultRxHttpClient underTest;
@@ -148,15 +148,15 @@ public void callsSupplierForEachSubscription() {
148148
@Test
149149
public void cancelsResponseFutureOnDispose() throws Exception {
150150
given(handlerSupplier.get()).willReturn(handler);
151-
given(asyncHttpClient.executeRequest(eq(request), any())).willReturn(resposeFuture);
151+
given(asyncHttpClient.executeRequest(eq(request), any())).willReturn(responseFuture);
152152

153153
/* when */
154154
underTest.prepare(request, handlerSupplier).subscribe().dispose();
155155

156156
// then
157157
then(asyncHttpClient).should().executeRequest(eq(request), handlerCaptor.capture());
158158
final AsyncHandler<Object> bridge = handlerCaptor.getValue();
159-
then(resposeFuture).should().cancel(true);
159+
then(responseFuture).should().cancel(true);
160160
verifyZeroInteractions(handler);
161161
assertThat(bridge.onStatusReceived(null), is(AsyncHandler.State.ABORT));
162162
verify(handler).onThrowable(isA(DisposedException.class));

Diff for: extras/simple/src/main/java/org/asynchttpclient/extras/simple/ResumableBodyConsumer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface ResumableBodyConsumer extends BodyConsumer {
3030
/**
3131
* Get the previously transferred bytes, for example the current file size.
3232
*
33-
* @return the number of tranferred bytes
33+
* @return the number of transferred bytes
3434
* @throws IOException IO exception
3535
*/
3636
long getTransferredBytes() throws IOException;

Diff for: extras/simple/src/main/java/org/asynchttpclient/extras/simple/SimpleAsyncHttpClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ public Builder setMaxConnectionsPerHost(int defaultMaxConnectionsPerHost) {
505505
return this;
506506
}
507507

508-
public Builder setConnectTimeout(int connectTimeuot) {
509-
configBuilder.setConnectTimeout(connectTimeuot);
508+
public Builder setConnectTimeout(int connectTimeout) {
509+
configBuilder.setConnectTimeout(connectTimeout);
510510
return this;
511511
}
512512

0 commit comments

Comments
 (0)