Pure-Python asynchronous interface to Gearman
Go to file
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
doc/source Merge "Generate a geard.8 manpage for Debian packaging" 2014-10-12 17:09:51 +00:00
gear Handle SIGINT correctly in Client.waitForServer() 2015-05-19 15:05:25 +00:00
.gitignore Add pbr-based setup. 2013-04-08 12:31:53 -04:00
.gitreview Added .gitreview 2013-04-05 18:53:07 +00:00
.testr.conf Support python3. 2013-06-05 15:07:36 -07:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 11:46:08 -08:00
LICENSE Initial commit. 2013-04-05 12:58:12 -07:00
MANIFEST.in Add pbr-based setup. 2013-04-08 12:31:53 -04:00
README.rst Add pbr-based setup. 2013-04-08 12:31:53 -04:00
requirements.txt Revert "Pin python-daemon to <2.0" 2015-02-02 19:51:37 -08:00
setup.cfg Add server command: "geard". 2013-06-20 16:48:40 -07:00
setup.py Solve hacking/pbr requirements conflict 2014-02-11 21:20:38 +00:00
test-requirements.txt Add SSL functional test 2015-03-11 09:45:26 -07:00
tox.ini Rename doc environment to docs 2014-09-08 13:47:17 -07:00

README.rst

python-gear

A pure-Python asynchronous library to interface with Gearman.