Resolve a channel race condition
Maybe resolve race condition on write buffer.
Maybe resolve race condition on socket.readyState and socket.transport.