Recently I use MINA in my project and I am puzzled with the following
problem.
First I only send data with a thread and a IoSession, it works fine; But
When I create an other thread and send some synchronize pkg with the same
IoSession, a problem happens: if some data is being send while a
synchronize pkg is sent, the synchronize pkg is always replace the data pkg
which is sent at the same time. It looks like that the IoSession.write()
method is not synchronized and if tow thread invoke the same
IoSession.write(), something wrong happens.
Can you give me any suggestions? I am very anxious to know this.
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn