mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
Refine: 优化tcp/udp服务器异常管理断开机制
This commit is contained in:
@@ -60,12 +60,8 @@ void RtmpSession::onManager() {
|
||||
|
||||
void RtmpSession::onRecv(const Buffer::Ptr &buf) {
|
||||
_ticker.resetTime();
|
||||
try {
|
||||
_total_bytes += buf->size();
|
||||
onParseRtmp(buf->data(), buf->size());
|
||||
} catch (exception &ex) {
|
||||
shutdown(SockException(Err_shutdown, ex.what()));
|
||||
}
|
||||
_total_bytes += buf->size();
|
||||
onParseRtmp(buf->data(), buf->size());
|
||||
}
|
||||
|
||||
void RtmpSession::onCmd_connect(AMFDecoder &dec) {
|
||||
|
||||
Reference in New Issue
Block a user