set application buffer size to not exceed tls record size and handle buffer overflow condition.