Giter Club home page Giter Club logo

Comments (10)

TakahikoKawasaki avatar TakahikoKawasaki commented on August 17, 2024

Are you using the latest version (1.22)?

from nv-websocket-client.

avasenin avatar avasenin commented on August 17, 2024

This one was caused on 1.16. Did you change something?

from nv-websocket-client.

TakahikoKawasaki avatar TakahikoKawasaki commented on August 17, 2024

1.16 was the version where I fixed a deadlock bug. Hmm... I must investigate the issue. Thank you for your report.

from nv-websocket-client.

avasenin avatar avasenin commented on August 17, 2024

Deadlock in 1.16 was reported by me in #21. It's definitely another issue.

Seems that I found the reason of this. In my case I'm sending a lot of data in onConnected callback. I'm using your library with congestion control enables. It means that frame queue size is limited. Deadlock happens If the number of messages submitted in onConnected callback > frame queue size and onConnected callback is triggered by ReadingThread. The reason of this in synchronized (mThreadsLock) which doesn't allow to start WritingThread. ReadingThread waits until WritingThread get items from frame queue and WritingThread waits when ReadingThread unlock mThreadsLock mutex because it's not started. Deadlock

from nv-websocket-client.

avasenin avatar avasenin commented on August 17, 2024

@TakahikoKawasaki Could you provide any ETA? Sorry for pushing this but I'm under pressure with this ticket and if it takes some time to fix on websocket-library level then I will implement a workaround on application level.

from nv-websocket-client.

TakahikoKawasaki avatar TakahikoKawasaki commented on August 17, 2024

Sorry, I'll look into the issue. Probably, I'll be able to update the code soon.

from nv-websocket-client.

TakahikoKawasaki avatar TakahikoKawasaki commented on August 17, 2024

@avasenin Try the new version, 1.23. If the issue still happens even with the new version, let me know again.

from nv-websocket-client.

avasenin avatar avasenin commented on August 17, 2024

Thx, I will check it tomorrow.

from nv-websocket-client.

avasenin avatar avasenin commented on August 17, 2024

Works great. Thanks

from nv-websocket-client.

eku avatar eku commented on August 17, 2024

@TakahikoKawasaki I'm wondering why you don't use https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/BlockingQueue.html? Would drop the need of synchronized.

from nv-websocket-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.