Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Yasu #1
Member since Sep 2011 · 22 posts
Group memberships: Members
Show profile · Link to this post
Subject: turn off network connection during XMPP over BOSH connection
1. connect to server with XMPP over BOSH
2. pulled off LAN cable or release IP address

In this case, I expect that I receive OnError and OnClose event from XmppClient, but the session is still alive.

MatriX : version 1.4.4.3
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Yasu:
In this case, I expect that I receive OnError and OnClose event from XmppClient, but the session is still alive.

what you expect is wrong. BOSH is specially developed for such scenarios in the stadard setup. Its eg. used a lot on mobile where you loose your connection often and switch always networks. In this case you want that the server keeps you connection alive until your network comes back in the next seconds or minutes.
On your server you can normally configure this values. You can find more details here when you search for inactivity and wait:
XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH)

Maybe sockets work better for your software than BOSH. What is the reason why you are usng BOSH?

Alex
Avatar
Yasu #3
Member since Sep 2011 · 22 posts
Group memberships: Members
Show profile · Link to this post
Thanks. I'll read XEP-0124.

The reason why I'm using BOSH is to pass through the HTTP proxy.
Our proxy allows only HTTP ports.
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: