mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
Removed check on the HttpSender.content field, that could lead to
NullPointerExceptions. Checking whether the content was last and then acting was not atomic, and the action being executed is designed to be run concurrently, so the check was not needed.
This commit is contained in:
parent
f73d8a083c
commit
330e7f87d7
@ -465,8 +465,7 @@ public abstract class HttpSender implements AsyncContentProvider.Listener
|
||||
public boolean abort(Throwable failure)
|
||||
{
|
||||
RequestState current = requestState.get();
|
||||
boolean abortable = isBeforeCommit(current) ||
|
||||
isSending(current) && !content.isLast();
|
||||
boolean abortable = isBeforeCommit(current) || isSending(current);
|
||||
return abortable && anyToFailure(failure);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user