mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the log cid display error, merge the publish recv thread log to publish connection.
This commit is contained in:
parent
3c402cb908
commit
c75f05c88b
9 changed files with 84 additions and 6 deletions
|
@ -57,6 +57,20 @@ int SrsThreadContext::get_id()
|
|||
return cache[st_thread_self()];
|
||||
}
|
||||
|
||||
int SrsThreadContext::set_id(int v)
|
||||
{
|
||||
st_thread_t self = st_thread_self();
|
||||
|
||||
int ov = 0;
|
||||
if (cache.find(self) != cache.end()) {
|
||||
ov = cache[self];
|
||||
}
|
||||
|
||||
cache[self] = v;
|
||||
|
||||
return ov;
|
||||
}
|
||||
|
||||
// the max size of a line of log.
|
||||
#define LOG_MAX_SIZE 4096
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue