-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
setTimeout isn't cleared when auction ends before its timeout #699
Comments
I'm currently working on a fix, to send a |
Also found a bug for the second call of |
See: #643 (comment) I don't understand the need for past auctions, as we remove all «completed», why do we keep the failed ones? This create all sort of bugs... |
We need to keep them around in case the bid we send to DFP or adserver actually wins the final auction, so in that case Also we can't remove bids that have been set and not won because it's possible they could be sent again in the future. |
@mkendall07 I agree on the DFP part, and I'll let the bids available. For the bids not set... what do you mean exactly? If there's no bid (or the bid returns after the timeout), there's no need for those bids anymore, don't you think? I would have removed them in the first place (based on auctionRunning === false and/or adUnitCode isn't being the one currently in auction, so addBidResponse will ignore those bids). |
Should be fixed when PR #735 will be merged. |
As reported here: #647 (comment)
For example, I run 2 calls to
requestBids()
, with a timeout of 1000ms. Prebid.js is already loaded when I call thepbjs.que.push()
Here is the result, the first column is the time relative to my own script:
As you can see: the
pbjs.que.push
function is run at 2 and 11ms. The first placement works fine, all bidders answer within 1 second.But the second placement shows that
bidsBackHandler
is launch at the timeout of the first placement (around 1000ms, here it's 1098ms).So the second placement is always blocked by the first one. And bids were rendered within 1s: AppNexus answers in 231ms, so it wasn't started at 11ms, but around 1098-231=867ms, just around the first placement run its
bidsBackHandler
.The text was updated successfully, but these errors were encountered: