Giter VIP home page Giter VIP logo

Comments (6)

nickdesaulniers avatar nickdesaulniers commented on July 24, 2024

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.

uv_poll_init_socket(uv_default_loop(), &context->poll_handle,
context->sockfd);
uv_poll_start(&context->poll_handle, UV_READABLE, NanomsgReadable);

from node-nanomsg.

nickdesaulniers avatar nickdesaulniers commented on July 24, 2024

Also, if you have a test case that shows the undesired behavior, that would be helpful.

from node-nanomsg.

reqshark avatar reqshark commented on July 24, 2024

@bmoelk PUB messages are not guaranteed. You might try PUSH PULL.

from node-nanomsg.

nickdesaulniers avatar nickdesaulniers commented on July 24, 2024

@reqshark can you cite that from the nanomsg man pages? I was not able to find a reference.

from node-nanomsg.

reqshark avatar reqshark commented on July 24, 2024

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.

bmoelk avatar bmoelk commented on July 24, 2024

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)

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.