Code Monkey home page Code Monkey logo

Comments (5)

statianzo avatar statianzo commented on May 24, 2024

Could you explain a use case?

from fleck.

ringostarr80 avatar ringostarr80 commented on May 24, 2024

I've written a server application, that sends status updates to the client (browser), if something has happened and that could be 20 times a second or so. In this case, sometimes the message never arrives the client and all the following messages too and then the server application consumes more and more memory.

In another case I get hundreds of warnings like: "11/1/2012 4:08:01 PM [Warn] Data sent after close. Ignoring."
In this case I could remove the connection from my connection list, but I don't know how to get the connection status?

from fleck.

statianzo avatar statianzo commented on May 24, 2024

Sounds reasonable. I'd take a pull request for setting a default send timeout.

from fleck.

ringostarr80 avatar ringostarr80 commented on May 24, 2024

Thank you.

from fleck.

statianzo avatar statianzo commented on May 24, 2024

Given Send now returns a Task, you could combine that with a timer task, and respond on the first to return.

from fleck.

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.