Re: XSRFHandler question

2009-08-30 Thread Jack Cai
I was looking at some console code and recalled this discussion. With the NIO buffers and charset utilities we can do the filtering in a stream way. I'll give it a try. -Jack On Mon, Jul 20, 2009 at 2:56 PM, Jack Cai greensi...@gmail.com wrote: The difficulty I see here is that the output is a

Re: XSRFHandler question

2009-07-20 Thread Jack Cai
The difficulty I see here is that the output is a byte stream, so watching a string pattern in this stream is not that easy. An alternative is that instead of inserting the XSRF.js content before the /body tag, we may simply append it to the end of the response. This means the script will be put

XSRFHandler question

2009-07-18 Thread David Jencks
I happened to get an OOM exception when I tried to look at the web console jmx viewer while the testsuite was running, coming from the regular expression replace in XSRFHandler. Looking into this it collects the entire output into a byte array and then processes it. I would think this