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: allow event loop to process during wait queue processing #2541

Merged
merged 1 commit into from
Sep 14, 2020

Commits on Sep 14, 2020

  1. fix: allow event loop to process during wait queue processing

    Running `processWaitQueue` on the next tick allows the event loop
    to process while the connection pool is processing large numbers of
    wait queue members. This also uncovered a few issues with timing
    in our tests, and in some cases our top-level API:
      - `commitTransaction` / `abortTransaction` use `maybePromise` now
      - `endSession` must wait for all the machinery behind the scenes to
         check out a connection and write a message before considering its
         job finished
       - internal calls to `kill` a cursor now await the the process of fully
         sending that command, even if they ignore the response
    
    NODE-2803
    mbroadst committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    d95ed76 View commit details
    Browse the repository at this point in the history