Fixed sending big chunks of data.

If the outgoing ring buffer capacity was too small to fit the outgoing
chunk, it was never resized because of the invalid size check.