Yelp/python-gearman — pull request #29 by klange (2012-09-25 22:55:27+00:00)
Title: Reconnect (if safe to do so) between calls to poll_connections_until_stopped

This should safely reconnect the underlying system socket when `establish_connection` is called. It will only reconnect if the outgoing buffer is empty, which should prevent commands from being broken between connections. If this doesn't break anything itself, it should clear up issues with linger, unused connections by resetting them.