Commit 08e4cc9b authored by A. Jesse Jiryu Davis's avatar A. Jesse Jiryu Davis Committed by Hannes Magnusson
Browse files

CDRIVER-1571 slow initiator cancels topology scan

Async ismaster commands started before a slow call to a blocking stream
initiator had the initiator's duration subtracted from their timeouts.
The initiator and the async commands use the same initial timeout value,
so once an initiator times out, all async commands started beforehand
now have 0 seconds remaining. They're canceled before they run.

This change relies on the overall timeout applied to mongoc_async_run
instead of per-command timeouts.
parent 618dee53
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment