a small repo to repro a hang in motor
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
hanging.py
nonhanging.py
requirements.txt
settings.py

README

Note: for this you'll have to be able to connect to a mongo replica set.

Pretty simple. First run

    pip install -r requirements.txt to set up your virtualenv (recommended to use a fresh virtualenv)

Then run

    python nonhanging.py

to make sure that works properly.

Then run

    python hanging.py

to see how that hangs (or at least it does on my machine!)