Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-5226

SRV polling dns lookup blocks the asyncio loop

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.12
    • Affects Version/s: 4.11
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      SRV polling dns lookup blocks the asyncio loop. The SrvMonitor class polls DNS periodically but it uses the blocking sync dnspython api to perform the SRV lookup. After switching from SDAM Threads to Tasks in PYTHON-4725 this lookup now blocks all other asyncio tasks.

      This will be fixed by PYTHON-3636 but I'm opening a new ticket to highlight the bug.

            Assignee:
            iris.ho@mongodb.com Iris Ho
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None