[sctp-dev] FW: Use SCTP with Java 1.6?
Christopher Hegarty -Sun Microsystems Ireland
Christopher.Hegarty at Sun.COM
Tue Jan 19 03:18:06 PST 2010
Dennis Hjort wrote:
> Hi again,
>
> Thanks for the quick answer !
>
> When I sent this problem, I did forget to write that the problem was
> just one of two problems we had with the code referenced, the other was
> that the we for some reason, seems to get stuck in the select call. See
> the following execution trail...
>
> Do you have any suggestions on what we could do to perhaps know more why
> we hang there ? Only thing we could see is that the doing accept
> printout gets printed before the "Avg number of msgs..." printout, which
> shouldn't happen. It seems pretty repetative, either the first problem
> occurs, or this one. We never get a full "run"...
I wonder if this is a problem with a spurious wake up of the selector
when there is nothing available on the channel. If this was the case
then your Server code would expect that the channel was closed, when it
is in fact still open and connected. This would explain the debugging
output of the are seeing.
Would it be possible to check the value of the returned
MessageInfo.bytes()? bytes() will return -1 if end of stream.
Example:
if (messageInfo != null)
if (messageInfo.bytes() == -1)
channel.close
What system are you running on? Maybe I could reproduce in house.
-Chris.
> With kind regards
>
> // Dennis
>
More information about the sctp-dev
mailing list