Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory() {

/**
* How this request should handle warnings. If null (the default) then
* this request will default to the behavior dictacted by
* this request will default to the behavior dictated by
* {@link Rest5ClientBuilder#setStrictDeprecationMode}.
* <p>
* This can be set to {@link WarningsHandler#PERMISSIVE} if the client
Expand Down Expand Up @@ -273,7 +273,7 @@ public Builder setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFact

/**
* How this request should handle warnings. If null (the default) then
* this request will default to the behavior dictacted by
* this request will default to the behavior dictated by
* {@link Rest5ClientBuilder#setStrictDeprecationMode}.
* <p>
* This can be set to {@link WarningsHandler#PERMISSIVE} if the client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public void cancelled() {
listener.onDefinitiveFailure(Cancellable.newCancellationException());
}
});
// needed to be able to cancel asnyc requests
// needed to be able to cancel async requests
if (futureRef instanceof org.apache.hc.core5.concurrent.Cancellable) {
request.httpRequest.setDependency((org.apache.hc.core5.concurrent.Cancellable) futureRef);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void run() {
/*
* Skipped or already started tasks do nothing. In most cases tasks will be cancelled and not run, but we want to protect for
* cases where future#cancel returns true yet the task runs. We want to make sure that such tasks do nothing otherwise they will
* schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" whish is undesirable.
* schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" which is undesirable.
*/
if (taskState.compareAndSet(TaskState.WAITING, TaskState.STARTED) == false) {
return;
Expand Down