Hi Steve,

On Dec 21, 2007 6:36 PM, Steve Johns <[EMAIL PROTECTED]> wrote:
> On Dec 17, 2007 12:17 PM, Trustin Lee <[EMAIL PROTECTED]> wrote:
> > On Dec 15, 2007 11:55 AM, Steve Johns <[EMAIL PROTECTED]> wrote:
> > > I may not make myself clear. If I send 100 bytes length of packets,
> > however,
> > > only 50 bytes are sent. (int sentBytes = socket.write(bytes[])).  I
> > meant if
> > > Mina will put the left 50 bytes back to the queue and send them again?
> >
> > Yes.  MINA will try to send when the NIO selector tells MINA that the
> > kernel buffer is reday to receive more write requests.
>
> So Mina will keep re-sending the packets which sent failure last time? I
> meant re-send the left 50bytes[] in my example?

It's not actually failure but only the buffer-full situation.  MINA
tried to write again the lest 50 bytes[] in your example later when
the buffer is not full anymore.

Therefore, in MINA TCP transport, however big buffer you send, it will
be sent finally as long as the connection is open.  Of course, your
data will be truncated if you are using the UDP transport.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to