Filip Hanik - Dev Lists wrote:
I agree, chunked would be the way to go for a communication.
I reverted my fix, however, now TC6 has a DOS possibility, by following
these steps
1. Override CometServlet.read, always return true (you wanna serve N
client requests, and you don't know how many its gonna send, so this is
not unreasonable)
I fail to see why doing that is reasonable: you're getting an event to
read data, so you have to read it even if you're not going to use it (as
in NIO). Right now I'm not hot about reading the data first in the
container: if done, it should be in InputBuffer, but could mean
automagically discarding data, which could become a very sneaky problem
if the user doesn't code the right way but is interested in the data.
There are still some serious problems though, starting with the current
C2B and B2C converters which use far too much memory. I would like to
use the NIO converters instead, but they want to use ByteBuffer and
CharBuffer.
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]