Fix for partial TCPClient readings

Added total buffered size to compare offset