pull request: write should not block infinitely when in pending