RE: Sometimes JxtaSocket connections fail (or take improbably long)

"lonegunman" <[email protected]> Sat, 2 Jun 2007 12:24:01 +0800
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
------=_NextPart_000_0017_01C7A510.E70AC150
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

I=A1=AFm new to jxta tech, and I=A1=AFve meet this problem too. I use a =
server with
public ip address as my rendezvous, and it=A1=AFs a private rendezvous =
peer. My
jxta version is 2.5, and sometimes my JXTASocket just cannot connect =
with
the JXTAServerSocket, meanwhile my rendezvous has discovered the two =
peers.
And if I change the rendezvous to a server in my local network, =
everything
goes well. Anybody can give me some idea why this goes happened?=20

Many thanks!

=20

Byers

  _____ =20

From: Vanessa Williams [mailto:[email protected]]=20
Sent: 2007=C4=EA6=D4=C22=C8=D5 6:47
To: [email protected]
Subject: [?? Probable Spam] [JXTA user] Sometimes JxtaSocket connections
fail (or take improbably long)

=20

I wonder if anyone has a clue as to the cause of this. I know Mohamed
mentioned to me something about a *possible* problem with Pipe =
resolution
that might be affecting sockets. Here's the scoop: normally we get
JxtaSocket connections in very short amounts of time (well, short enough =
for
our purposes: .5-5 seconds, usually in the range of 1-2 seconds--faster
would be nice, but it'll do for now). We use a timeout of 45s, so if a
connection can't be made in that amount of time... we're hosed.=20

=20

Now *sometimes* a peer will get into a situation where it cannot be
contacted over a JxtaSocket. I don't really know what conditions lead to =
it.
I've been assuming the cause is simply network congestion, as the =
problem
always resolves itself eventually. However... it's hard to grok that =
network
congestion could be the cause of at least an order of magnitude slowdown =
in
the ability to set up a connection. And once it's done, the transfers =
are
great, so... something seems a little fishy.

=20

I was wondering if it might be related to issue 1634. Something about
restarted peers having problems because other peers have stale =
messengers or
something. I kind of doubt this because bouncing every infrastructure =
peer
didn't help, but maybe I'm missing something. We are still using JXTA =
2.4.1,
so I can't say whether this problem still exists in 2.5 and I can't =
directly
try that out. :-(

=20

Has anyone seen such radical inconsistency with JxtaSocket connections
before? It's relatively rare, but it really botches things up when it
happens. I can try increasing the socket timeout to something insane =
like 2
minutes just to see if it's just slow or actually broken, but... any =
ideas
would be appreciated.

=20

Thanks,

=20

Vanessa

=20

--

Vanessa Williams

oponia networks

[email protected]

=20





=20


------=_NextPart_000_0017_01C7A510.E70AC150
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dgb2312">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>

<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Univers LT";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dblue style=3D'word-wrap: =
break-word;-khtml-nbsp-mode: space;
-khtml-line-break: after-white-space'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'>I=A1=AFm new to =
jxta tech,
and I=A1=AFve meet this problem too. I use a server with public ip =
address as my
rendezvous, and it=A1=AFs a private rendezvous peer. My jxta version is =
2.5, and
sometimes my JXTASocket just cannot connect with the JXTAServerSocket, =
meanwhile
my rendezvous has discovered the two peers. And if I change the =
rendezvous to a
server in my local network, everything goes well. Anybody can give me =
some idea
why this goes happened? <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'>Many =
thanks!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'>Byers<o:p></o:p></=
span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span lang=3DEN-US style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
Vanessa Williams [mailto:[email protected]] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> =
2007</span></font><font
size=3D2 face=3D&#23435;&#20307;><span =
style=3D'font-size:10.0pt;font-family:SimSun'>=C4=EA</span></font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>6</span></font><font
size=3D2 face=3D&#23435;&#20307;><span =
style=3D'font-size:10.0pt;font-family:SimSun'>=D4=C2</span></font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>2</span></font><font
size=3D2 face=3D&#23435;&#20307;><span =
style=3D'font-size:10.0pt;font-family:SimSun'>=C8=D5</span></font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
6:47<br>
<b><span style=3D'font-weight:bold'>To:</span></b> [email protected]<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [?? Probable =
Spam] [JXTA
user] Sometimes JxtaSocket connections fail (or take improbably =
long)</span></font><span
lang=3DEN-US><o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>I wonder if anyone has a clue as to the cause =
of this.
I know Mohamed mentioned to me something about a *possible* problem with =
Pipe
resolution that might be affecting sockets. Here's the scoop: normally =
we get
JxtaSocket connections in very short amounts of time (well, short enough =
for
our purposes: .5-5 seconds, usually in the range of 1-2 seconds--faster =
would
be nice, but it'll do for now). We use a timeout of 45s, so if a =
connection
can't be made in that amount of time... we're hosed. =
<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>Now *sometimes* a peer will get into a =
situation where
it cannot be contacted over a JxtaSocket. I don't really know what =
conditions
lead to it. I've been assuming the cause is simply network congestion, =
as the
problem always resolves itself eventually. However... it's hard to grok =
that
network congestion could be the cause of at least an order of magnitude
slowdown in the ability to set up a connection. And once it's done, the
transfers are great, so... something seems a little =
fishy.<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>I was wondering if it might be related to =
issue 1634.
Something about restarted peers having problems because other peers have =
stale
messengers or something. I kind of doubt this because bouncing every
infrastructure peer didn't help, but maybe I'm missing something. We are =
still
using JXTA 2.4.1, so I can't say whether this problem still exists in =
2.5 and I
can't directly try that out. :-(<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>Has anyone seen such radical inconsistency =
with
JxtaSocket connections before? It's relatively rare, but it really =
botches
things up when it happens. I can try increasing the socket timeout to =
something
insane like 2 minutes just to see if it's just slow or actually broken, =
but...
any ideas would be appreciated.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>Thanks,<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'>Vanessa<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div><span style=3D'border-spacing: 0px =
0px;text-align:auto;-khtml-text-decorations-in-effect: none;
-apple-text-size-adjust: auto;orphans: 2;widows: =
2;word-spacing:0px'><span
style=3D'border-spacing: 0px =
0px;text-align:auto;-khtml-text-decorations-in-effect: none;
-apple-text-size-adjust: auto;orphans: 2;widows: 2;word-spacing:0px'>

<div>

<div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DHelvetica><span =
lang=3DEN-US
style=3D'font-size:10.5pt;font-family:Helvetica;color:black'><span
style=3D'border-spacing: 0px =
0px;text-align:auto;-khtml-text-decorations-in-effect: none;
-apple-text-size-adjust: auto;orphans: 2;widows: =
2;word-spacing:0px'>--<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><span class=3Dapple-style-span><font size=3D1 =
color=3Dblack
face=3D"Univers LT"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Univers LT";
color:black'>Vanessa Williams</span></font></span><font size=3D2 =
color=3Dblack
face=3DHelvetica><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:Helvetica;
color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><span class=3Dapple-style-span><font size=3D1 =
color=3Dblack
face=3D"Univers LT"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Univers LT";
color:black'>oponia networks</span></font></span><font size=3D2 =
color=3Dblack
face=3DHelvetica><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:Helvetica;
color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><span class=3Dapple-style-span><font size=3D1 =
color=3Dblack
face=3D"Univers LT"><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:"Univers LT";
color:black'><a =
href=3D"mailto:[email protected]">[email protected]</a></span></font></=
span><font
size=3D2 color=3Dblack face=3DHelvetica><span lang=3DEN-US =
style=3D'font-size:10.5pt;
font-family:Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DHelvetica><span =
lang=3DEN-US
style=3D'font-size:10.5pt;font-family:Helvetica;color:black'><o:p>&nbsp;<=
/o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DHelvetica><span =
lang=3DEN-US
style=3D'font-size:10.5pt;font-family:Helvetica;color:black'><br>
<br>
</span></font><span lang=3DEN-US></span><o:p></o:p></span></p>

</div>

</span></span>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

</div>

</body>

</html>

------=_NextPart_000_0017_01C7A510.E70AC150--