modify socket interface.

This commit is contained in:
caozhiyi
2019-09-07 12:55:57 +08:00
parent c485adcd95
commit 21ebc4cb14
11 changed files with 21 additions and 83 deletions

View File

@@ -26,7 +26,7 @@ void ReadFunc(const Handle& handle, base::CBuffer* data, uint32_t len, uint32_t
// get recv data to send back.
int size = data->ReadUntil(msg_buf, __buf_len, __buf_spilt, find_len, need_len);
if (error != CEC_CLOSED && error != CEC_CONNECT_BREAK) {
SyncWrite(handle, msg_buf, size);
Write(handle, msg_buf, size);
}
}
}