Add zk-epoll to create thousands of ZK sessions with only a few procs

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Add prog to test read-only clients (that set a CHILD watch)

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Deal with the absence of EPOLLRDHUP & explicit casts for ctxts

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Save the post along with the context

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Check interests on a separate thread

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Add TODO items

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Hold a lock before using a zhandle_t *

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Add .gitignore

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Add --sleep-after-clients and --sleep-in-between to allow ramping up slowly

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Add missing newlines

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Clean-up logging so that it is more useful

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Update comments plus remove unnecesary else

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Fix error method

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
A simple drop-in queue implementation (for writing tests, etc)

Signed-off-by: Raul Gutierrez S <rsegales@twitter.com>
Free ptrs

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Add a simple makefile

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Add queue.h to expose public API

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Update .gitignore to exclude ~ files

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Use a queue to offload calls to zookeeper_process() to worker threads

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Rename zk-follow-server-set.c -> zk-watchers.c

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>