Issue #9682 - changes from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
0fd8bd2b2f
commit
c055fd06b5
|
@ -21,8 +21,10 @@ import org.eclipse.jetty.util.BufferUtil;
|
|||
import org.eclipse.jetty.util.Callback;
|
||||
|
||||
/**
|
||||
* This class can be used to accumulate pairs of {@link ByteBuffer} and {@link Callback}, and eventually copy
|
||||
* these into a single {@link ByteBuffer} or byte array and succeed the callbacks.
|
||||
* <p>This class can be used to accumulate pairs of {@link ByteBuffer} and {@link Callback}, and eventually copy
|
||||
* these into a single {@link ByteBuffer} or byte array and succeed the callbacks.</p>
|
||||
*
|
||||
* <p>This class is not thread safe and callers must do mutual exclusion.</p>
|
||||
*/
|
||||
public class ByteBufferCallbackAccumulator
|
||||
{
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.concurrent.TimeUnit;
|
|||
import org.eclipse.jetty.util.BlockingArrayQueue;
|
||||
import org.eclipse.jetty.util.BufferUtil;
|
||||
import org.eclipse.jetty.util.Callback;
|
||||
import org.eclipse.jetty.util.IO;
|
||||
import org.eclipse.jetty.util.thread.AutoLock;
|
||||
import org.eclipse.jetty.websocket.core.Frame;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -224,14 +225,7 @@ public class MessageInputStream extends InputStream implements MessageSink
|
|||
e.callback.failed(failure);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
super.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
LOG.debug("Failure Closing InputStream", e);
|
||||
}
|
||||
IO.close(super::close);
|
||||
}
|
||||
|
||||
private static class Entry
|
||||
|
|
Loading…
Reference in New Issue