Skip to content

Commit

Permalink
revert invalid changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Jul 16, 2024
1 parent d02d2eb commit 964c2ea
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private enum GZState
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)
Expand Down Expand Up @@ -302,7 +303,6 @@ private class GzipBufferCB extends IteratingNestedCallback
{
private final ByteBuffer _content;
private final boolean _last;
private RetainableByteBuffer _buffer;

public GzipBufferCB(boolean complete, Callback callback, ByteBuffer content)
{
Expand All @@ -321,13 +321,6 @@ public GzipBufferCB(boolean complete, Callback callback, ByteBuffer content)
LOG.debug("GzipBufferCB(complete={}, callback={}, content={})", complete, callback, BufferUtil.toDetailString(content));
}

@Override
protected void onCompleteSuccess()
{
cleanup();
super.onCompleteSuccess();
}

@Override
protected void onCompleteFailure(Throwable x)
{
Expand All @@ -349,6 +342,7 @@ protected Action process() throws Exception
// then the trailer has been generated and written below.
// We have finished compressing the entire content, so
// cleanup and succeed.
cleanup();
return Action.SUCCEEDED;
}

Expand Down

0 comments on commit 964c2ea

Please sign in to comment.