From 75a40daa07c81e7ad684cd6962b66d41f7651ba0 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 22 Mar 2019 10:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtsp=E7=BB=84=E6=92=AD?= =?UTF-8?q?=E7=9B=B8=E5=85=B3bug=20=E6=9B=B4=E6=96=B0ZLToolKit(=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=80=A7=E8=83=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index a33cc6af..7f42f305 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -74,7 +74,7 @@ static int kSockFlags = SOCKET_DEFAULE_FLAGS | FLAG_MORE; RtspSession::RtspSession(const Socket::Ptr &pSock) : TcpSession(pSock) { //设置15秒发送超时时间 - pSock->setSendTimeOutSecond(45); + pSock->setSendTimeOutSecond(15); DebugL << get_peer_ip(); } @@ -628,7 +628,7 @@ bool RtspSession::handleReq_Setup(const Parser &parser) { if(!strongSelf) { return; } - strongSelf->shutdown(); + strongSelf->safeShutdown(); }); } int iSrvPort = _pBrdcaster->getPort(trackRef->_type);