applying patch from pika 0.9.14b1, poll errors