Yelp/python-gearman — pull request #20 by patricklucas (2012-03-09 19:43:27+00:00)
Title: Use weakrefs to avoid leaks

Dictionaries in client and client_handler keep references to GearmanJobRequest objects, but aren't explicitly removed until they either fail or complete.

This never occurs when wait_until_complete=False, so using WeakKeyDictionary and WeakValueDictionary ensures the request objects can be garbage collected.

Closes #10