Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handlers[type] run count increases on each timed retry #73

Open
khandieyea opened this issue Apr 16, 2014 · 0 comments
Open

handlers[type] run count increases on each timed retry #73

khandieyea opened this issue Apr 16, 2014 · 0 comments

Comments

@khandieyea
Copy link

Hi There,

I'm not sure if this is an issue, but just something I noticed.

Inside .run() where the handlers[type] is returned, it appears that that function is being called 1 extra time for each time the message retries after waiting for its delay.

originalHandler = opts[type];
        return handlers[type] = function() {
          var data, defaultOpts, handlerResp, msgOpts, reason, resp, responseOpts, xhr, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;

          console.log("I'll appear more and more after each failed ajax 500...");

          resp = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

Anywho, like I said, Im not sure if it's an issue. If the browser is left open, and left to retry over the space of an hour, I get hundreds of I'll appear more and more after each failed ajax 500 after EACH failed ajax request

Thanks

@khandieyea khandieyea changed the title handlers[type] being run count increases on each timed retry handlers[type] run count increases on each timed retry Apr 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant