revert invalid changes
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
d02d2eb8bd
commit
964c2ea2d6
|
@ -72,6 +72,7 @@ public class GzipResponseAndCallback extends Response.Wrapper implements Callbac
|
|||
private final int _bufferSize;
|
||||
private final boolean _syncFlush;
|
||||
private DeflaterPool.Entry _deflaterEntry;
|
||||
private RetainableByteBuffer _buffer;
|
||||
private boolean _last;
|
||||
|
||||
public GzipResponseAndCallback(GzipHandler handler, Request request, Response response, Callback callback)
|
||||
|
@ -302,7 +303,6 @@ public class GzipResponseAndCallback extends Response.Wrapper implements Callbac
|
|||
{
|
||||
private final ByteBuffer _content;
|
||||
private final boolean _last;
|
||||
private RetainableByteBuffer _buffer;
|
||||
|
||||
public GzipBufferCB(boolean complete, Callback callback, ByteBuffer content)
|
||||
{
|
||||
|
@ -321,13 +321,6 @@ public class GzipResponseAndCallback extends Response.Wrapper implements Callbac
|
|||
LOG.debug("GzipBufferCB(complete={}, callback={}, content={})", complete, callback, BufferUtil.toDetailString(content));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCompleteSuccess()
|
||||
{
|
||||
cleanup();
|
||||
super.onCompleteSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCompleteFailure(Throwable x)
|
||||
{
|
||||
|
@ -349,6 +342,7 @@ public class GzipResponseAndCallback extends Response.Wrapper implements Callbac
|
|||
// then the trailer has been generated and written below.
|
||||
// We have finished compressing the entire content, so
|
||||
// cleanup and succeed.
|
||||
cleanup();
|
||||
return Action.SUCCEEDED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue