mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
notify kafka when client close
This commit is contained in:
parent
71451878c9
commit
d2ca51ac50
3 changed files with 38 additions and 4 deletions
|
|
@ -1555,6 +1555,13 @@ int SrsRtmpConn::on_disconnect()
|
|||
int ret = ERROR_SUCCESS;
|
||||
|
||||
http_hooks_on_close();
|
||||
|
||||
#ifdef SRS_AUTO_KAFKA
|
||||
if ((ret = kafka->on_close(srs_id())) != ERROR_SUCCESS) {
|
||||
srs_error("notify kafka failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
// TODO: implements it.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue