webXMPP

Check-in [8eef10cfa6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Be smarter on auth failure/re-login
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8eef10cfa67658a2e67ddefeb69704c7040cb44c1fb4967712bbf2d81f54c5af
User & Date: web 2019-12-07 17:24:44
Context
2019-12-07
17:25
A little debug help on our UDP proto when we hit an exception check-in: cb9a7146c6 user: web tags: master, trunk
17:24
Be smarter on auth failure/re-login check-in: 8eef10cfa6 user: web tags: master, trunk
2019-08-25
00:46
Nope, doesn't play well. Go back to doing our own notify/dbus/led stuff. check-in: 10182dc9d8 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/ui.js.

266
267
268
269
270
271
272






273
274
275
276
277
278
279
    //
    // We leave curReq non-null because rxerror() no-op's
    //  if it already sees it cleared.
    //

    // Network error.  Back off one notch before retry.
    if (req.status != 200) {






	rxerror();
	return;
    }

    // Response text, a JSON object.
    var txt = req.responseText;
    if (txt == '') {







>
>
>
>
>
>







266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
    //
    // We leave curReq non-null because rxerror() no-op's
    //  if it already sees it cleared.
    //

    // Network error.  Back off one notch before retry.
    if (req.status != 200) {
	// Authen failure; need to log in again
	if (req.status == 401) {
	    notify("WebXMPP authentication fail - need login");
	    ourState = 3;
	    return;
	}
	rxerror();
	return;
    }

    // Response text, a JSON object.
    var txt = req.responseText;
    if (txt == '') {