From aec7fe1704f08615c5d4ac37dd5d8aa31b45cb9c Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 16 Jun 2009 10:06:14 +0000 Subject: [PATCH] Update offset sooner (Before getting any exceptions) --- src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java b/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java index 420babacc1..0e6cdde4ed 100644 --- a/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java +++ b/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java @@ -94,9 +94,9 @@ public class ChunkedStream implements ChunkedInput { break; } readBytes += localReadBytes; + offset += readBytes; } - offset += readBytes; return wrappedBuffer(chunk, 0, readBytes); } }