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

Refactor HTTP stream to disconnect client when unpublish

This commit is contained in:
winlin 2019-12-17 16:54:06 +08:00
parent 1e83da7812
commit 191b07668d
7 changed files with 26 additions and 25 deletions

View file

@ -2641,9 +2641,9 @@ VOID TEST(KernelUtility, RTMPUtils2)
VOID TEST(KernelErrorTest, CoverAll)
{
if (true) {
EXPECT_TRUE(srs_is_system_control_error(ERROR_CONTROL_RTMP_CLOSE));
EXPECT_TRUE(srs_is_system_control_error(ERROR_CONTROL_REPUBLISH));
EXPECT_TRUE(srs_is_system_control_error(ERROR_CONTROL_REDIRECT));
EXPECT_TRUE(srs_is_system_control_error(srs_error_new(ERROR_CONTROL_RTMP_CLOSE, "err")));
EXPECT_TRUE(srs_is_system_control_error(srs_error_new(ERROR_CONTROL_REPUBLISH, "err")));
EXPECT_TRUE(srs_is_system_control_error(srs_error_new(ERROR_CONTROL_REDIRECT, "err")));
}
if (true) {
@ -2653,9 +2653,9 @@ VOID TEST(KernelErrorTest, CoverAll)
}
if (true) {
EXPECT_TRUE(srs_is_client_gracefully_close(ERROR_SOCKET_READ));
EXPECT_TRUE(srs_is_client_gracefully_close(ERROR_SOCKET_READ_FULLY));
EXPECT_TRUE(srs_is_client_gracefully_close(ERROR_SOCKET_WRITE));
EXPECT_TRUE(srs_is_client_gracefully_close(srs_error_new(ERROR_SOCKET_READ, "err")));
EXPECT_TRUE(srs_is_client_gracefully_close(srs_error_new(ERROR_SOCKET_READ_FULLY, "err")));
EXPECT_TRUE(srs_is_client_gracefully_close(srs_error_new(ERROR_SOCKET_WRITE, "err")));
}
if (true) {