Git Product home page Git Product logo

Comments (5)

MoathAlshorman avatar MoathAlshorman commented on July 3, 2024 1

I've fixed the issue by adding the following lines to org.red5.client.net.rtmp.RTMPMinaIoHandler.sessionOpened(IoSession session) method as you did with org.red5.server.net.rtmp.RTMPMinaIoHandler.
@mondain Is this has side effects? because I tested it; memory leak was solved and everything worked well.

RTMPConnManager connManager = (RTMPConnManager) RTMPConnManager.getInstance();
        session.setAttribute(RTMPConnection.RTMP_CONN_MANAGER, new WeakReference<IConnectionManager<RTMPConnection>>(connManager));

from red5-client.

MoathAlshorman avatar MoathAlshorman commented on July 3, 2024

Could you advice me if you have a time @mondain
Thanks in advance.

from red5-client.

mondain avatar mondain commented on July 3, 2024

The server and client RTMPMinaIoHandlers are similar but due to their roles are different; both client and server have different handshakes to start. I don't believe the client uses a connection manager unless its used on the server, but I may just be foggy on the current process. Use containsAttribute if you're having issues with an attribute lookup.

from red5-client.

mondain avatar mondain commented on July 3, 2024

A fix for this using the WeakReference in the session will be in the next commit.

from red5-client.

MoathAlshorman avatar MoathAlshorman commented on July 3, 2024

Thank you!

from red5-client.

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.