mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
优化性能
This commit is contained in:
@@ -654,6 +654,7 @@ bool RtspSession::handleReq_Play() {
|
||||
|
||||
if(m_pRtpReader){
|
||||
weak_ptr<RtspSession> weakSelf = dynamic_pointer_cast<RtspSession>(shared_from_this());
|
||||
SockUtil::setNoDelay(m_pSender->rawFD(), false);
|
||||
m_pRtpReader->setReadCB([weakSelf](const RtpPacket::Ptr &pack) {
|
||||
auto strongSelf = weakSelf.lock();
|
||||
if(!strongSelf) {
|
||||
|
||||
@@ -92,7 +92,7 @@ private:
|
||||
return m_pSender->send(pcBuf, iSize);
|
||||
}
|
||||
int send(const Socket::Buffer::Ptr &pkt){
|
||||
return m_pSender->send(pkt);
|
||||
return m_pSender->send(pkt,SOCKET_DEFAULE_FLAGS | FLAG_MORE);
|
||||
}
|
||||
void shutdown() override;
|
||||
bool handleReq_Options(); //处理options方法
|
||||
|
||||
Reference in New Issue
Block a user