Yes as you said the messages are split into small trunks. Actually I'm working 
on a RTMP server. I'm building a stronger chunking system.

And yes, thanks!

--------------------------------------------------
From: "Emmanuel LŽcharny" <[email protected]>
Sent: Wednesday, December 16, 2009 5:25 PM
To: <[email protected]>
Subject: Re: How do I test whether a IoSession is ready for write?

> [email protected] a écrit :
>> onMessageSent is invoked when ONE message is sent, not all message is sent.
>>   
> yes, but isn't it what you want? Ie, being able to send urgent message 
> when a stock of less urgent messages are waiting to be written ?
> 
> Let's suppose that you send 10 messages to the client, and that you have 
> one urgent message, then you want this urgent message to be sent after 
> the current message but before the 9 other ones, no ?
> 
> Now, if you send BIG messages and want to stop that in the middle if you 
> have an urgent message to send to the client, you may want to use 
> another approach : splitting the BIG message in smaller messages.
> 
> Btw, I checked the code, the MessageSent event is really sent when the 
> current message has been completely flushed, so it will work.
> 
> 

Reply via email to