[nanomsg] Re: about TCP_NODELAY option

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Wed, 31 May 2017 15:53:57 -0700

Yeah, this unfortunately doesn’t get set in TCP properly yet. :(

On Wed, May 31, 2017 at 4:27 AM, Andris <dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hi!

Does the NN_TCP_NODELAY option work with TCP transport protocol?
I try set it, but it seems, that nanomsg socket ignore this option... In
Wireshark I observe that data from publisher to subscriber is send as tcp
stream, not as separate messages over tcp.

int nodelay = 1;
 ret = nn_setsockopt (sock, NN_TCP, NN_TCP_NODELAY, &nodelay,
sizeof(nodelay));


Thanks!

Other related posts: