[nanomsg] Re: NN_SNDBUF on inproc

  • From: Paul Colomiets <paul@xxxxxxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Thu, 9 Oct 2014 01:33:20 +0300

Hi,

On Wed, Oct 8, 2014 at 11:46 PM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/10/14 21:27, Steve Vinoski wrote:
>> Hi Martin, you're right that RCVBUF is in control in this context.
>> The problem with that, though, is that it prevents setting the
>> buffer size if you try to set it on socket that doesn't support
>> RCVBUF, such as a push socket for example.
>
> I am not 100% sure how that works on the kernel level (any insights,
> Garrett?) but my understanding is that owner of the IPC socket can
> only specify the size of its rx buffer and has no way to affect the
> size of its tx buffer.

From unix(7) on linux it seems quite opposite:

> The  SO_SNDBUF  socket  option does have an effect for UNIX domain sockets, 
> but the SO_RCVBUF option does not.


-- 
Paul

Other related posts: