-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Increase retry delays between toolbarAction ajax calls #25967
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
Conversation
@@ -113,7 +113,7 @@ | |||
sfwdt.setAttribute('class', 'sf-toolbar sf-error-toolbar'); | |||
} | |||
}, | |||
{ maxTries: 5 } | |||
{ maxTries: 5, timeoutDelay: 1000 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeoutDelay
here, while it's retryDelay
the other way around? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just fixed it this minute. stupid mistake
@@ -28,6 +28,7 @@ | |||
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); | |||
options = options || {}; | |||
options.maxTries = options.maxTries || 0; | |||
options.retryDelay = options.retryDelay || 500; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to make this an option IMO. Just change the hardcoded 500
value in the setTimeout
call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess that would be f 8000 ine since since the maxTries is only used for loading the toolbar data at least as far as i see it. Therefor i went with extending and keeping the default behaviour unless told otherwise. I'll update the pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be merged on 2.7.
Thanks @JoeKre. < C3CB /td> |
…rAction ajax calls (JoeKre) This PR was submitted for the master branch but it was squashed and merged into the 2.7 branch instead (closes #25967). Discussion ---------- [WebProfilerBundle] Increase retry delays between toolbarAction ajax calls | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | #25849 | License | MIT | Doc PR | - Commits ------- 3288fb0 [WebProfilerBundle] Increase retry delays between toolbarAction ajax calls
Uh oh!
There was an error while loading. Please reload this page.