Make sure ...Decompressor.end() is called even on Exception. See #224
This commit is contained in:
parent
70e0eba894
commit
30ef214677
@ -70,9 +70,12 @@ public class SpdyFrameDecoder extends FrameDecoder {
|
|||||||
protected Object decodeLast(
|
protected Object decodeLast(
|
||||||
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
|
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
|
try {
|
||||||
Object frame = decode(ctx, channel, buffer);
|
Object frame = decode(ctx, channel, buffer);
|
||||||
headerBlockDecompressor.end();
|
|
||||||
return frame;
|
return frame;
|
||||||
|
} finally {
|
||||||
|
headerBlockDecompressor.end();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user