Code Monkey home page Code Monkey logo

rxjs-max-callstack's Introduction

The broken demo is on master

npm install version of rxjs is RC1 (issue exists on all release candidates)

Start the server with npm start

Then run the demo with npm run demo

CTRL^C the demo process to drop all the connections at once watch the server call stack blow up.

If you lower the demo to less clients (like 100), you will notice the server does not blow up but not all events appear to be firing (only 3-4 client close messages log), this could be related or a different issue in itself.

Now switch to the branch working

Run npm install to run the demo with Beta 12

Same as above start the server with npm start

Then run the demo with npm run demo

CTRL^C the demo process to drop all the connections at once and everything works as expected, this time however we were able to start and drop 4k connections (this was run on a 2015 MBP, you might hit file descriptor limits before this depending on your OS/host).

I discovered this issue when trying to use rxjs with a tcp socket server. I could not track down the commit that introduce this regression, it could have been something specific to takeUntil however I think it is related to a change with Subscription or how disposal works?

rxjs-max-callstack's People

Contributors

appilon avatar

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.