add threshold for unsend buffer size