firstly we need an 'if' around available_buffer to throw an error or take some action. We should not ever request a 0 byte read.
firstly we need an 'if' around available_buffer to throw an error or take some action. We should not ever request a 0 byte read.