Hello:

I'm using Mina Core 2.0.7

I use BufferedWriteFilter to send data and every time I write data for
sending it ,  I flush this filter manually by this code:

this.session.write(data);
((BufferedWriteFilter) f).flush(this.session);



Sometimes I've to send data from the messageReceived() callback method.
I've observed that until  messageReceived() finishes , data is not sent

Example:

public void messageReceived(IoSession session, Object message) throws Exception
{

session.write("test");
((BufferedWriteFilter) f).flush(session);

.....
.....  ( doing stuffs )
......

( **here**, "test" is sent )
}


How I can send data  immediatly in messageReceived()  ?


Thanks

Reply via email to