Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
JimNick #1
Member since Nov 2011 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: OnClose fired and XmppComponentConnection.ClientSocket.Connected is False but socket IS open
I handle the OnClose event from the XmppComponentConnection in order to determine if the socket has been closed by the server. Unfortunately, the OnClos event fires at least twice when the socket is still open (according to OpenFire's Component Sessions tab) but the Connected property of the XmppComponentConnection isf 'false' no matter when I check it. Is there some other way to determine when the cnnection has been lost?
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Do you have an Xml log of such a session?
When you get an OnClose then both sides should Close the socket.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS