Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-flv If there is no streaming, the player will keep waiting. If the player starts multiple plays continuously, there will be multiple waits. #2253

Closed
terry8204 opened this issue Mar 21, 2021 · 3 comments
Assignees
Labels
Duplicated Duplicated bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@terry8204
Copy link

terry8204 commented Mar 21, 2021

Description'

Please ensure that the markdown structure is maintained.

Please describe the issue you encountered here.
'
Make sure to maintain the markdown structure.

  1. SRS version: 4.0.84

  2. The SRS log is as follows:
    This part did not exit due to timeout.
    if ((err = io->read(body, 4096, NULL)) != srs_success) {
    // Because we use timeout to check trd state, so we should ignore any timeout.
    if (srs_error_code(err) == ERROR_SOCKET_TIMEOUT) {
    srs_freep(err);
    continue;
    }

         return srs_error_wrap(err, "read response");
     }
    
  3. The SRS configuration is as follows:
    (Config)
    srs.conf

Replay

1. Do not start streaming and click to play http://127.0.0.1:8080/live/livestream.flv
2. Click 10 times continuously.
3. Many pending http-flv will appear.
4. Start streaming.
5. The first 5 pending ones will change to streaming status, while the remaining 5 will remain pending.
6. The player keeps spinning.

Expected Behavior (Expect)

  1. Continuous clicking should cancel the previous multiple pending http-flv or timeout.
  2. Cancel the previous 9 pending http-flv and only stream to the last http-flv.
    image

TRANS_BY_GPT3

@terry8204
Copy link
Author

terry8204 commented Mar 21, 2021

Does this need to check if the flv is being streamed, and if it times out without streaming, then disconnect this connection?

TRANS_BY_GPT3

@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Apr 25, 2021

This is not an SRS problem, right?

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Aug 21, 2021

Dup to #1134

According to the convention of HTTP, it is a viable choice to return a 404 when there is no stream. Refer to #1134.

TRANS_BY_GPT3

@winlinvip winlinvip added the Duplicated Duplicated bug. label Aug 27, 2021
@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip changed the title http-flv 如果没推流,播放器会一直等待,播放器连续启达多个播放,会多个等待 http-flv If there is no streaming, the player will keep waiting. If the player starts multiple plays continuously, there will be multiple waits. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicated Duplicated bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants