1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for bug #251, 9k+ clients, use fast cache for msgs queue. 2.0.57

This commit is contained in:
winlin 2014-12-05 16:44:11 +08:00
parent dde05c6315
commit 9ee138746f
8 changed files with 171 additions and 49 deletions

View file

@ -605,7 +605,7 @@ int SrsRtmpConn::do_playing(SrsSource* source, SrsQueueRecvThread* trd)
// get messages from consumer.
// each msg in msgs.msgs must be free, for the SrsMessageArray never free them.
int count = 0;
if ((ret = consumer->dump_packets(msgs.max, msgs.msgs, count)) != ERROR_SUCCESS) {
if ((ret = consumer->dump_packets(&msgs, &count)) != ERROR_SUCCESS) {
srs_error("get messages from consumer failed. ret=%d", ret);
return ret;
}