441073 isEarlyEOF on HttpInput
This commit is contained in:
parent
229cdf2532
commit
1d5998f02e
|
@ -248,6 +248,15 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
|
||||||
_channelState.onReadPossible();
|
_channelState.onReadPossible();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean isEarlyEOF()
|
||||||
|
{
|
||||||
|
synchronized (lock())
|
||||||
|
{
|
||||||
|
return _contentState==EARLY_EOF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method should be called to signal that all the expected
|
* This method should be called to signal that all the expected
|
||||||
* content arrived.
|
* content arrived.
|
||||||
|
@ -318,6 +327,7 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReady()
|
public boolean isReady()
|
||||||
{
|
{
|
||||||
|
@ -473,7 +483,7 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
|
||||||
@Override
|
@Override
|
||||||
public int noContent() throws IOException
|
public int noContent() throws IOException
|
||||||
{
|
{
|
||||||
throw new EofException();
|
throw new EofException("Early EOF");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue