Hi Steve, On Dec 13, 2007 11:49 PM, Steve Johns <[EMAIL PROTECTED]> wrote: > Thanks for Mina. It is a great project.
Whenever we hear this, we become happy and try to work harder for MINA. Thank you too! > After I am trying out the Mina, I had some questions. > > 1) If the server session.write() a message, however client network is really > SLOW. Will mina keep trying to send > out the message until timeout?(I guess session.settimeout() is applied > here). If so, how IoHandler get notified from this > event message? (Through exceptionCaught, close session?). There's writeTimeout property in IoSessionConfig, so you can adjust the timeout value. Once the write it timed out, WriteTimeoutException is raised and forwarded to your IoHandler's exceptionCaught method. And then the connection will be closed automatically. > Why > NOT accumulated writeQueue size > user defined size and exception? Could you explain this question more in detail? > 2) If the server wants to send the same message to all 1000 sessions, should > I encode the same message 1000 times > in the encoder extend the messageEncoder? If so, that kinda affects the > performance. Right. We got the same request before and I suggested him to use some cache. Would it work for you, either? > 3) In Mina web document, source code 1.1.x->main > the "WORK" class link under org.apache.mina.transport.socket.nio is wrong. Ah.. you meant the 'Worker' class, right? It's an inner class and it seems like the Xref report generator has some bug dealing with inner classes. Hopefully it should be fixed in the maven xref plugin. > Finally, thanks Trustin. Please don't thank me. Please thank all the community members who made this project keep going. :) HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
