gear/gear
Sam Thursfield 0558e173e9 Handle SIGINT correctly in Client.waitForServer()
The Python 2.7 threading.Condition.wait() function will block the
process from responding to any signals until the condition triggers.

This was especially bad for commandline applications. Before this
commit, if an application didn't manage to connect to the Gearman server
it would block forever and ignore CTRL+C.

Adding a 'timeout' works around this issue. Behaviour is unchanged
except that the 'Waiting for at least one active connection' debug
message will now be logged once per second.

This problem is fixed upstream in Python 3.2:
<https://bugs.python.org/issue8844>

Change-Id: Ib1043948b1b37a4a6732176314b8a243aad73397
2015-05-19 15:05:25 +00:00
..
cmd Add access control 2014-04-22 11:55:09 -07:00
tests Resolve python3 test failures 2015-03-11 17:37:49 -07:00
__init__.py Handle SIGINT correctly in Client.waitForServer() 2015-05-19 15:05:25 +00:00
acl.py Resolve python3 test failures 2015-03-11 17:37:49 -07:00
constants.py Support python3. 2013-06-05 15:07:36 -07:00