Session类构造析构跟踪日志统一在底层网络框架打印

This commit is contained in:
xiongziliang
2023-04-22 23:30:22 +08:00
parent f1037e3767
commit de8249592e
9 changed files with 9 additions and 28 deletions

View File

@@ -18,14 +18,11 @@ using namespace toolkit;
namespace mediakit {
RtmpSession::RtmpSession(const Socket::Ptr &sock) : Session(sock) {
DebugP(this);
GET_CONFIG(uint32_t,keep_alive_sec,Rtmp::kKeepAliveSecond);
sock->setSendTimeOutSecond(keep_alive_sec);
}
RtmpSession::~RtmpSession() {
DebugP(this);
}
RtmpSession::~RtmpSession() = default;
void RtmpSession::onError(const SockException& err) {
bool is_player = !_push_src_ownership;