Index: com/sun/grizzly/http/HttpWorkerThread.java =================================================================== --- com/sun/grizzly/http/HttpWorkerThread.java (revision 3337) +++ com/sun/grizzly/http/HttpWorkerThread.java (working copy) @@ -43,6 +43,9 @@ import com.sun.grizzly.util.StreamAlgorithm; import com.sun.grizzly.util.ThreadAttachment; +import com.sun.grizzly.util.Interceptor; +import com.sun.grizzly.standalone.StaticHandler; + import java.util.concurrent.ExecutorService; /** @@ -134,4 +137,15 @@ } return threadAttachment; } + + @Override + public void reset() { + if( streamAlgorithm != null ) { + Interceptor handler = streamAlgorithm.getHandler(); + if( handler instanceof StaticHandler ) { + ((StaticHandler) handler).reset(); + } + } + super.reset(); + } } Index: com/sun/grizzly/standalone/StaticHandler.java =================================================================== --- com/sun/grizzly/standalone/StaticHandler.java (revision 3337) +++ com/sun/grizzly/standalone/StaticHandler.java (working copy) @@ -160,4 +160,9 @@ } return -1; } + + public void reset() { + fileCache = null; + socketChannel = null; + } }