update handling length of bytes sent.