Possible TCPMessenger bug
I'm performing some testing with JXTA Sockets and when a high
throughput of messages is generated between 2 peers (in both directions),
some messages seems to be lost, and retransmissions can be observed.
I've made a great logging effort, performing message low level analysis, and
TCPMessenger run() procedure seems to be the source of the problem:
to low level, several JXTA messages are present, but processBuffer procedure
only dispatches the first one, so pending messages are kept into TCPMessenger
message buffer, till a new remote message is read from socketChannel.
I would like to know if it's a bug or it's the expected behaviour.