Fix for issue #1 Long polling timeout.

This fix effectively retries the poll (when it times out) untill it gets
a response.