#4386 closed defect (fixed)
xhr inflight watcher has bad loop logic
Reported by: | sjmiles | Owned by: | sjmiles |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Core | Version: | 0.9 |
Keywords: | xhr, sync | Cc: | |
Blocked By: | Blocking: |
Description
_watchInFlight uses dojo.forEach to iterator over the private _inFlight array. Because it also sometimes modifies that array (removes items) during iteration, the iteration is unstable (items get missed).
Primary symptom is incorrect sync behavior when an async request is inflight.
Recoding the loop using for instead of forEach makes it easy to adjust the indices as needed.
Note: See
TracTickets for help on using
tickets.
(In [10437]) Repair _watchInFlight loop, fixes #4386.