Workaround for polling until stream is writable.
Workaround for polling until stream is writable.

Ryezhang/stronglink,btrask/stronglink,Ryezhang/stronglink,btrask/stronglink,btrask/stronglink,Ryezhang/stronglink,btrask/stronglink