Prepare stream buffer on retry.

This allows to send messages which arrived while we were sleeping before
retrying.
Merge pull request #9 from mixlr/feature/prepare_buffer_on_retry

Prepare stream buffer on retry.