Skip to content

srs:6 DELETE Cannot manually remove links . Removing RTCPeerConnection link is invalid and still linked #4320

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

Open
gg22mm opened this issue Apr 5, 2025 · 5 comments
Labels
EnglishNative This issue is conveyed exclusively in English.

Comments

@gg22mm
Copy link

gg22mm commented Apr 5, 2025

docker run --rm --network=host --rm registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 objs/srs -c conf/rtc.conf

root@localhost:/usr/local/srs# curl -v -X DELETE "http://localhost:1985/rtc/v1/whip/?app=live&stream=100" -H "Content-Type: application/json"
*   Trying ::1:1985...
* TCP_NODELAY set
* connect to ::1 port 1985 failed: Connection refused
*   Trying 127.0.0.1:1985...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 1985 (#0)
> DELETE /rtc/v1/whip/?app=live&stream=100 HTTP/1.1
> Host: localhost:1985
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Type: application/json
> 
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server



root@localhost:/usr/local/srs# 
root@localhost:/usr/local/srs# 
root@localhost:/usr/local/srs# curl -v -X DELETE "http://127.0.0.1:1985/rtc/v1/whip/?app=live&stream=100" -H "Content-Type: application/json"
*   Trying 127.0.0.1:1985...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 1985 (#0)
> DELETE /rtc/v1/whip/?app=live&stream=100 HTTP/1.1
> Host: 127.0.0.1:1985
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Type: application/json
> 
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server
root@localhost:/usr/local/srs# 

Image

剔除RTCPeerConnection链接无效,还一直链着
Removing RTCPeerConnection link is invalid and still linked

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Apr 5, 2025
@gg22mm gg22mm changed the title srs:6 DELETE Cannot manually remove links srs:6 DELETE Cannot manually remove links . Removing RTCPeerConnection link is invalid and still linked Apr 5, 2025
@suzp1984
Copy link
Contributor

suzp1984 commented Apr 5, 2025

https://ossrs.net/lts/en-us/docs/v6/doc/http-api#streams

read the doc, there are no such api for delete method with rtc/v1/whip/.

@gg22mm
Copy link
Author

gg22mm commented Apr 5, 2025

https://ossrs.net/lts/en-us/docs/v6/doc/http-api#streams

read the doc, there are no such api for delete method with rtc/v1/whip/.

那如何主动剔除非法用户,比如用户套餐已过期,那他还是可以一直链接推流。那它一直可以使用,一直薅羊毛~~。
How to proactively remove illegal users, such as those whose user plans have expired, so that they can still continue to link and stream. Then it can always be used, constantly pulling wool~~.

@gg22mm
Copy link
Author

gg22mm commented Apr 5, 2025

Image
Is this not it?
Isn't that right?

TRANS_BY_GPT4

@suzp1984
Copy link
Contributor

suzp1984 commented Apr 5, 2025

Image Is this not it? Isn't that right?

TRANS_BY_GPT4

Affirmative, that is correct.

@gg22mm
Copy link
Author

gg22mm commented Apr 5, 2025

Unfortunately, there is a bug with this feature that prevents the backend from actively removing it.
Unfortunately, there is a bug in this feature that cannot be actively removed by the backend

TRANS_BY_GPT4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

No branches or pull requests

3 participants