Frederic Soulier a écrit :
Fred, Can you provide me a test to reproduce this. I guess I am lost
here. I am not sure if your message is complete or not, meaning have
all the necessary bytes sent to client or not?

--
thanks
ashish


Hi
The messages sent to the clients are fine.  Basically if it wasn't the
clients would just stop.
Also millions of messages are being exchanged between many clients and the
server.  No issue there.
It's just that for every message sent by the server I get this spurious
empty WriteRequest which doesn't do any harm but at the same time shouldn't
happen.
Just wanted to see if there was a known explanation.  Looking at the code
path I can't see anything that could create this scenario.  I'll see if I
can get more details.
The reason why you get this empty and superfluous empty message is because MINA gathers some stats about the number of message sent. As a message can be split in many parts, and sent in chunks, we need to generate a special message to know when the message has been fully sent.

When this empy message hits the fan^H^H^Hsend queue, a MessageSent event is generated.

I know that it sounds stupid (and I think it's not just a sound), but this is how it works currently...
Fred


Reply via email to