-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch changes `aleph.http/request` so that setting the response deferred to an error status will terminate an in-flight request. Closes #712.
- Loading branch information
1 parent
3304d64
commit 14d86ac
Showing
3 changed files
with
145 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package aleph.utils; | ||
|
||
import java.util.concurrent.CancellationException; | ||
|
||
public class RequestCancellationException extends CancellationException { | ||
|
||
public RequestCancellationException() { } | ||
|
||
public RequestCancellationException(String message) { | ||
super(message); | ||
} | ||
|
||
public RequestCancellationException(Throwable cause) { | ||
super(cause.getMessage()); | ||
initCause(cause); | ||
} | ||
|
||
public RequestCancellationException(String message, Throwable cause) { | ||
super(message); | ||
initCause(cause); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters