修复编译警告

This commit is contained in:
xia-chu 2021-02-04 18:09:06 +08:00
parent 1b24832a44
commit 34bbfc8bcb
2 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ void HttpSession::sendResponse(int code,
if(no_content_length){
//http-flv直播是Keep-Alive类型
bClose = false;
}else if(size >= SIZE_MAX || size < 0 ){
}else if((size_t) size >= SIZE_MAX || size < 0 ){
//不固定长度的body那么发送完body后应该关闭socket以便浏览器做下载完毕的判断
bClose = true;
}

View File

@ -62,7 +62,7 @@ public:
*/
void sortPacket(SEQ seq, T packet) {
if (seq < _next_seq_out) {
if (_next_seq_out - seq < kMax) {
if (_next_seq_out < seq + kMax) {
//过滤seq回退包(回环包除外)
return;
}