fix truncated response if initial packet exceeds buffer size