B
Brad
I have a response filter which injects "standard" html into my pages. The
filter works fine when the initial stream is small enough not to
buffer...or....if I have a large unbuffered stream (i.e. I set buffer=false
on a large page). Now the problem: If I turn on buffering on a large
page, the page output (to the browser) is correct a few times (sometines
just once, sometime 2-3 times...on the same page) then I seem to either
lose data or get corrputed data (I'm not sure which) in the middle of the
stream. The problem seems to persist until the page in my local web servers
cache (?) is cleared out i.e. I browser to some other pages then browse
back to the problem page.
I've compared the size of the buffer at the start and end of my filter's
write sub on the calls when it works when it does not and the buffers are
the same size which make it look like I'm not droping characters. The large
page has embedded encrypted client script from a third party control and
I've wondered if that script could be getting corrupted from the
UTF8Encoding.UTF8.GetString and/or the later UTF8Encoding.UTF8.GetBytes in
the write sub.
Anyone have thoughts or suggestions as to what to look for?
Thanks
Brad
filter works fine when the initial stream is small enough not to
buffer...or....if I have a large unbuffered stream (i.e. I set buffer=false
on a large page). Now the problem: If I turn on buffering on a large
page, the page output (to the browser) is correct a few times (sometines
just once, sometime 2-3 times...on the same page) then I seem to either
lose data or get corrputed data (I'm not sure which) in the middle of the
stream. The problem seems to persist until the page in my local web servers
cache (?) is cleared out i.e. I browser to some other pages then browse
back to the problem page.
I've compared the size of the buffer at the start and end of my filter's
write sub on the calls when it works when it does not and the buffers are
the same size which make it look like I'm not droping characters. The large
page has embedded encrypted client script from a third party control and
I've wondered if that script could be getting corrupted from the
UTF8Encoding.UTF8.GetString and/or the later UTF8Encoding.UTF8.GetBytes in
the write sub.
Anyone have thoughts or suggestions as to what to look for?
Thanks
Brad