Comments (6)
So if you set linger to 1000ms, node.js will exit before the message is sent? I'm not sure how setTimeout and family signal to node.js not to shutdown, but we can probably add that signaling mechanism. I'm curious if node's tcp stuff will wait to send then exit. We reuse the default uv loop when sending and receiving messages, signaling when we should read from a file descriptor.
node-nanomsg/src/node_nanomsg.cc
Lines 258 to 260 in f08bdd0
from node-nanomsg.
Also, if you have a test case that shows the undesired behavior, that would be helpful.
from node-nanomsg.
@bmoelk PUB messages are not guaranteed. You might try PUSH PULL.
from node-nanomsg.
@reqshark can you cite that from the nanomsg man pages? I was not able to find a reference.
from node-nanomsg.
ya totally, the docs are weak in a lot of places.
hmm, it might be in an issue or mailing list. i'll see if i can find it
from node-nanomsg.
Thanks for the info re: pub/sub, I'll use push/pull for my purposes. FWIW, here is a gist to reproduce the behavior: https://gist.github.com/bmoelk/7b4e90eee1c820345b1f
from node-nanomsg.
Related Issues (20)
- add support for nng HOT 4
- Error handling HOT 3
- TypeError: Path must be a string. Received undefined HOT 2
- rfc links
- Compile error in Node V12.* HOT 6
- vulnerable dependencies HOT 1
- deprecation warning from Nan::Callback::call HOT 2
- DeprecationWarning: Buffer HOT 2
- remove package-lock.json from .gitignore HOT 2
- fallthrough warnings in nanomsg HOT 1
- are we handling scopes correctly? HOT 1
- How do i catch timeout on reqrep?
- Carsh When msg send 10K per second HOT 2
- Electron compatibility: "Loading non-context-aware native module in renderer" HOT 1
- node 14.15 compatability HOT 1
- (node:660) electron: The default of contextIsolation is deprecated and will be c hanging from false to true in a future release of Electron. HOT 2
- Double handle scope
- -Wcast-function-type in nodejs/src/node.h
- sub: filter by binary chan prefix? HOT 1
- npm install --use_system_libnanomsg=true fails
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 node-nanomsg.