Skip to content

[Bug] SRT: SRS does not respect peer_idle_timeout #4600

@artem-smorodin-dacast

Description

@artem-smorodin-dacast

This is the same issue as #3511, which has not been fixed.

It seems that SRS does not respect peer_idle_timeout currently, a constant value of 5 seconds is used.

I think we should set this timeout at both the socket level and the application level, otherwise it doesn't make sense. If peer_idle_timeout exceeds 5 seconds, the connection will be closed due to hardcoded application timeout being reached.

recv_timeout_ = 5 * SRS_UTIME_SECONDS;
send_timeout_ = 5 * SRS_UTIME_SECONDS;

Which are set here

Timeout will be reached here

I debugged this and can confirm that this is the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnglishNativeThis issue is conveyed exclusively in English.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions