optimize recv data check