SRV polling dns lookup blocks the asyncio loop

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: