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:
parent
de41c1c9d2
commit
7013993c7a
3 changed files with 114 additions and 0 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue