dev@shoal.java.net

Re: [Shoal-Dev] About JXTA's sending overflow

From: Joseph Fialli <Joseph.Fialli_at_Sun.COM>
Date: Wed, 13 May 2009 14:43:38 -0400

Bongjae Chang wrote:
> Hi,
<deleted>
> Does anybody know JXTA' options or other solutions for preventing the
> sender from being overflowed? e.g. Options for increasing internal
> JXTA's message queue size.
There is no message queue size for this. It is a direct send case, so it
is effectively a queue of one.
If many threads are trying to send over same pipe at same time(for this
case, 100 threads),
jxta sendMessage returns false for all subsequent ones till the
outstanding one completes (I learned this based on Bongjae's previous
analysis in).
We retried some arbitrary number of times for time being when
sendMessage returns false, thus the constant is definitely subject to
change.

I agree that this needs to be addressed to be made more reliable than it
currently is.

I am going to look at this some and propose possible solution from gms
layer.

-Joe

> Thanks.
> --
> Bongjae Chang