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

Fix potential timing issue on bid responses #109

Merged
merged 1 commit into from
Dec 3, 2015

Conversation

nickjacob
Copy link
Collaborator

  • conditional check for appnexus meant that other adapters with multiple responses/resource requests (e.g., AOL, rubicon) might return bids after checkAllBidResponseReceived() === true; code preferred appnexus bidder
  • by letting all adapters specify number of expected bids with setExpectedBidsCount we let number of returned bids differ from number of bids passed in, e.g. in cases where each size is represented as a separate bid

@mkendall07
Copy link
Member

Thanks @nickjacob !

I'm not sure this will work with all our bidders. I need to do some testing on this before I can merge. I think maybe we should just allow a done(bidderCode) method to be available in case we don't know expected bids ahead of time?

@mkendall07
Copy link
Member

Testing this now @nickjacob

mkendall07 added a commit that referenced this pull request Dec 3, 2015
Fix potential timing issue on bid responses
@mkendall07 mkendall07 merged commit 897019d into master Dec 3, 2015
@mkendall07 mkendall07 deleted the expected-bids-count branch January 27, 2016 00:18
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Jul 17, 2017
….23.0 to aolgithub-master

* commit '136fc37637749a764070c35c03e7e87a5c157947': (33 commits)
  Added changelog entry.
  Implemented passing key values feature.
  Update code to ESlint rules.
  Prebid 0.24.1 Release
  tests: drop ie9 browserstack test
  Audience Network: separate size from format (prebid#1218)
  Bugfix/target filtering api fix (prebid#1220)
  Map sponsor request param to endpoint param (prebid#1219)
  Increment pre version
  Probed 0.24.0 Release
  Beachfront adapter - add ad unit size (prebid#1183)
  Thoughtleadr adapter - fix postMessage (prebid#1207)
  When prebid server issues a no-bid response, call addBidResponse for every adUnit requested (prebid#1204)
  Improvement/timeout xhr (prebid#1172)
  Add native support (prebid#1072)
  Improvement/alias queue (prebid#1156)
  Updated documentaion (prebid#1160)
  Improvement/prebid iframes amp pages (prebid#1119)
  Fixes prebid#1114 possible xss issue (prebid#1186)
  Allowed setTargetingForGPTAsync() to target specific ad unit codes. (prebid#1158)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants