Skip to content

srs.librtmp is published to srs2, occasionally encountering handshake failure. #750

Closed
@backylee

Description

@backylee

OS: Centos 6.5 64-bit
SRS version srs (simple-rtmp-server) 2.0.178
srs.librtmp is released to srs, occasionally encountering handshake failure with the error message:
simple handshake failed[-1].
Restarting the program on the srs.librtmp side resolves the issue, but it reoccurs after about a day. It is not related to time, as the same code works fine on other devices.

Code:

        // connect rtmp context
        rtmphandle = srs_rtmp_create(rtmp_url);
        if (NULL == rtmphandle)
        {
            DBG("srs_rtmp_create NULL");
            uiRet = FAILURE;
            break;
        }
        DBG("srs_rtmp_create success");
        ret = srs_rtmp_handshake(rtmphandle);
        if (ret != 0)
        {
            _**DBG("simple handshake failed[%d].", ret);**_
            uiRet = FAILURE;
            break;
        }
        DBG("srs_rtmp_handshake success");

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions