Skip to content

Commit e10a4e4

Browse files
committed
netty: file upload failed
- fix #3663
1 parent d1087d6 commit e10a4e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/jooby-netty/src/main/java/io/jooby/internal/netty/NettyContext.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
import io.netty.handler.stream.ChunkedStream;
9292
import io.netty.handler.stream.ChunkedWriteHandler;
9393
import io.netty.handler.timeout.IdleStateHandler;
94+
import io.netty.util.IllegalReferenceCountException;
9495

9596
public class NettyContext implements DefaultContext, ChannelFutureListener {
9697

@@ -857,8 +858,10 @@ void destroy(Throwable cause) {
857858
if (decoder != null) {
858859
try {
859860
decoder.destroy();
860-
} catch (Exception x) {
861-
router.getLog().debug("body decoder destroy resulted in exception", x);
861+
} catch (IllegalReferenceCountException ex) {
862+
router.getLog().trace("decoder was released already", ex);
863+
} catch (Exception ex) {
864+
router.getLog().debug("body decoder destroy resulted in exception", ex);
862865
}
863866
decoder = null;
864867
}

0 commit comments

Comments
 (0)