mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
Refine: 使用socket fd作为日志追踪id
This commit is contained in:
parent
6b0903aa5f
commit
61c55f4030
@ -55,7 +55,7 @@ void WebRtcSession::onRecv(const Buffer::Ptr &buffer) {
|
|||||||
//只允许寻找一次transport
|
//只允许寻找一次transport
|
||||||
_find_transport = false;
|
_find_transport = false;
|
||||||
auto user_name = getUserName(buffer);
|
auto user_name = getUserName(buffer);
|
||||||
_identifier = user_name + '-' + to_string(reinterpret_cast<uint64_t>(this));
|
_identifier = to_string(getSock()->rawFD()) + '-' + user_name;
|
||||||
auto transport = WebRtcTransportManager::Instance().getItem(user_name);
|
auto transport = WebRtcTransportManager::Instance().getItem(user_name);
|
||||||
CHECK(transport && transport->getPoller()->isCurrentThread());
|
CHECK(transport && transport->getPoller()->isCurrentThread());
|
||||||
transport->setSession(shared_from_this());
|
transport->setSession(shared_from_this());
|
||||||
|
Loading…
Reference in New Issue
Block a user