Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Force retry error message if error hangs logout (bug 886742) #223

Merged

Conversation

muffinresearch
Copy link
Contributor

This adds a retry error message if something hangs up the logout. Mainly this would be something like bango having a 500 which doesn't cause a failBack in the request.

To test it then there's this patch [1] which makes the bangoLogout fail the first time around and succeed the second - just adapt the mp.mozilla.dev line to point at your webpay (I found this works best if you set it to a different host than the way you're requesting webpay - I think it's that that's at the root of causing the non-failure in the 500 when the data type is script as it fails as expected if the host matches the request).

The default timeout is 30s which may or may not be too long - I'm happy to take suggestions on that.

[1] https://gist.github.com/muffinresearch/1a4675c2d39e3e7c0ee4

@@ -1,8 +1,14 @@
require(['cli', 'id', 'auth', 'pay/bango', 'lib/longtext'], function(cli, id, auth, bango, checkLongText) {
"use strict";

var LOGOUTTIMEOUT = 30000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to adjust this from settings, you could do switch it to cli.bodyData.logoutTimeout

@kumar303
Copy link
Contributor

kumar303 commented Aug 7, 2013

r+wc. After the settings change, I say merge it in. It can become more general as you tackle the others in https://bugzilla.mozilla.org/show_bug.cgi?id=876808

muffinresearch added a commit that referenced this pull request Aug 9, 2013
…86742

Force retry error message if error hangs logout (bug 886742)
@muffinresearch muffinresearch merged commit 082de66 into mozilla:master Aug 9, 2013
@muffinresearch muffinresearch deleted the timeout-if-logout-fails-886742 branch August 9, 2013 20:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants