GithubHelp home page GithubHelp logo

Unused TURN allocations about coturn HOT 5 OPEN

quadriq avatar quadriq commented on June 18, 2024 2
Unused TURN allocations

from coturn.

Comments (5)

dangngoctam00 avatar dangngoctam00 commented on June 18, 2024

Hello @quadriq,
I know one way but I haven't tested it carefully, you could check function void turn_report_session_usage(void *session, int force_invalid),

  • active allocation will publish message to peer traffic when ss->received_packets + ss->sent_packets + ss->peer_received_packets + ss->peer_sent_packets == 4096, and 4 values in this expression are not equal 0.
  • inactive allocation will also publish this message, but because they only contain refreshed message, so ss->peer_received_packets + ss->peer_sent_packets will be equal to 0.

you could try this way and give me feedback, like I said above, I haven't tested it carefully.
Thanks

from coturn.

quadriq avatar quadriq commented on June 18, 2024

Hi @dangngoctam00 thank you, I will try it out. Does it actually means that "inactive allocation" would always have peer usage (peer_received_packets and, ss->peer_sent_packets) equal zero ?

from coturn.

dangngoctam00 avatar dangngoctam00 commented on June 18, 2024

Hi @quadriq, this is what I've observed but I think you can test it yourself when having host-host candidate, it may take a long time to wait total of refreshed message equals to 4096.
I've tested with turnutils_uclient, here I sent refreshed message only, so the traffic of peer equals to 0.

image

from coturn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.