Skip to main content

Problem with BiDi pipes and network restarts

2 replies [Last post]
Joined: 2007-10-17

I am having a problem with restarting peers in my network and reforming the connections (the restarts are forced by errors that have nothing to do with JXTA).

General outline: I have a single rendezvous peer and several normal peers. Peers use a single propagated pipe to distribute advertisements followed by individual pairs of peers making a BiDi pipe. When I start up the application, the forming of the BiDi pipe happens very quickly, but once a peer crashes and is restarted, the advertisement/propagate pipe still works but the formation of the BiDi pipe fails repeatedly and only eventually works after 3-10 minutes.

I have tried both clearing and not clearing the cache directory for the peer that is restarted, does not seem to make a difference either way. Fiddling with the timeouts on the ServerPipe/JxtaBiDiPipe has not helped either. Does anyone have other ideas?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-31


I don't know which version of JXTA you are using, or whether you are using peers behind NATS.

We have found some issues when Bidi try to reconnect to peers located behind NATs. We have also found that SRDI information is not propagated properly in weakly connected networks.

I suggest you try your application with the 2.6 Beta 2 release which came out yesterday. If your bidi still take too much time to reconnect let us know.


Jérôme (AdamMan71)

Joined: 2007-10-17

One other piece of information - the problem only happens when the peer that runs the JxtaServerPipe end is restarted (the code for forming the actual BiDI connection is basically the same as that in the tutorials, Jxta(BiDi/Server)PipeExample.