Comments (8)
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.
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.
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.
Thanks :)
from stompit.
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.
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.
Thanks for the into
from stompit.
*info
from stompit.
Related Issues (20)
- Error: Unexpected ACK received for message-id [ID:b-23774631- HOT 3
- Error: Unexpected ACK received for message-id. How to resolve? HOT 2
- Bulk processing HOT 2
- Cannot send any message when applying the heavy load in sequential in for loop
- Connection refused 127.0.0.1:61613 HOT 3
- How to remove activemq queues and scheduled jobs?
- How to get scheduled id from client when scheduling message to activemq?
- How to set type in message headers
- Unable to use priority in activeMq using stompit in nodejs HOT 1
- Use of Heartbeat in activeMQ HOT 1
- Message gets redelivered in loop during the time of high CPU processing on the client side HOT 3
- Is there a way to programmatically delete an ActiveMQ Job Schedule? HOT 1
- Disconnect hangs after unsubscribe HOT 1
- The connection is closing when thousands of messages are ready to subscribe in queue HOT 1
- Max size of message
- Setting AMQ_SCHEDULED_DELAY doesn't work
- Async usage?
- Cannot read properties of undefined (reading 'send')
- Get properties of message
- How to keep the connection open and also set connection timeout?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stompit.