# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\Projects\griz-last\trunk\modules\grizzly\src\main\java\com\sun\grizzly # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: Controller.java --- Controller.java Base (BASE) +++ Controller.java Locally Modified (Based On LOCAL) @@ -599,10 +599,12 @@ } /** - * Return a Context to the pool + * Return a Context to the pool if it is not shared. + * * @param ctx - the {@link Context} */ public void returnContext(Context ctx){ + if(ctx.decrementRefCount()>0) return; ctx.recycle(); contexts.offer(ctx); }