434027 - ReadListener.onError() not invoked in case of read failures.
This commit is contained in:
parent
a1d18a157d
commit
976d86b375
|
@ -20,7 +20,6 @@ package org.eclipse.jetty.server;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import javax.servlet.ReadListener;
|
import javax.servlet.ReadListener;
|
||||||
import javax.servlet.ServletInputStream;
|
import javax.servlet.ServletInputStream;
|
||||||
|
|
||||||
|
@ -363,7 +362,7 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
|
||||||
{
|
{
|
||||||
synchronized (lock())
|
synchronized (lock())
|
||||||
{
|
{
|
||||||
if (_onError == null)
|
if (_onError != null)
|
||||||
LOG.warn(x);
|
LOG.warn(x);
|
||||||
else
|
else
|
||||||
_onError = x;
|
_onError = x;
|
||||||
|
|
Loading…
Reference in New Issue