support long polling with GetNWithTimeoutAndWait
Merge pull request #27 from joeshaw/long-polling

support long polling with GetNWithTimeoutAndWait