Git Product home page Git Product logo

Comments (8)

gdaws avatar gdaws commented on July 30, 2024

This issue has been reported before (issue #15) and a workaround was released in stompit v0.21.

The warning is caused by a flaw in node's stream implementation. This type of detection and warning was removed from node in v0.11.10.

If you're unable to upgrade node then you can suppress the warning by increasing the value of process.maxTickDepth variable.

from stompit.

garrows avatar garrows commented on July 30, 2024

Thanks for the fast reply. We are stuck on 0.10 for now so I'll use the
work around. Does this affect 0.12 or io.js?
On 25 Aug 2015 8:10 am, "Graham Daws" [email protected] wrote:

This issue has been reported before (issue #15
#15) and a workaround was
released in stompit v0.21.

The warning is caused by a flaw in node's stream implementation. This type
of detection and warning was removed from node in v0.11.10.

If you're unable to upgrade node then you can suppress the warning by
increasing the value of process.maxTickDepth variable.


Reply to this email directly or view it on GitHub
#29 (comment).

from stompit.

gdaws avatar gdaws commented on July 30, 2024

Neither are affected. From 0.11.10 onwards, node and io.js allow nextTick infinite recursion. The test I used to reproduce the problem worked without issue in v0.12 and io.js v1.

from stompit.

garrows avatar garrows commented on July 30, 2024

Thanks :)

from stompit.

garrows avatar garrows commented on July 30, 2024

Does this mean while a message is in transit (between client and server), process.nextTick loop will block any other operations on the node server (e.g. express won't process other connection requests)??

from stompit.

gdaws avatar gdaws commented on July 30, 2024

No, the node server won't be blocked by stompit reading a message.

A limited amount of nextTick recursion occurs in stompit when for example a large chunk of data, containing possibly hundreds of messages, is read on the socket. All the messages can be read and processed immediately in a nextTick loop if there's no external I/O requested or pauses in between by the subscriber. If enough messages are processed at once it triggers the nextTick recursion warning. No blocking occurs, the nextTick loop exits and control returns to the event loop when there's nothing left to read or when reading pauses on the socket. There's no blocking during reading.

from stompit.

garrows avatar garrows commented on July 30, 2024

Thanks for the into

from stompit.

garrows avatar garrows commented on July 30, 2024

*info

from stompit.

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.