"이희승 (Trustin Lee) <[EMAIL PROTECTED]>" wrote:
Hi Emmanuel,
Hi again,
You might be interested in the following question from Gaston Dombiak:

http://markmail.org/message/uylaf2zauta6ppe7

And there's an answer there in my response made at 9 Apr 2008.
I don't think that your answer fits well in the scope of the question I pushed. We don't want to throttle write on the server side, we just want to send bytes as fast as possible, but be sure that those bytes are sent and read by the client before sending some new (which will have to be accumulated somewhere on the server until you get an OOM).

This is really a critical issue for every server using MINA as a malicious client could perfectly be use to kill the server just by sending a request and never reading more than a few bytes of data, if I interpret correctly what I have seen.

Peter Royal suggested to use a Callback to handle with such a problem, and it sounds like a good idea (we have listeners we can use for that in WriteFuture), but this has to be done in the ProtocolCodecFilter code, which is a part of the MINA API.

So let me know if something could be done in this area, or if I simply missed some important point.

Thanks !
HTH,


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to