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

kafka send the accept message.

This commit is contained in:
winlin 2015-10-22 15:26:57 +08:00
parent de41c1c9d2
commit 7013993c7a
3 changed files with 114 additions and 0 deletions

View file

@ -1289,6 +1289,14 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
}
srs_assert(conn);
#ifdef SRS_AUTO_KAFKA
// notify kafka cluster.
if ((ret = kafka->on_client(type, client_stfd)) != ERROR_SUCCESS) {
srs_error("kafka handler on_client failed. ret=%d", ret);
return ret;
}
#endif
// directly enqueue, the cycle thread will remove the client.
conns.push_back(conn);
srs_verbose("add conn to vector.");