[nanomsg] Re: Fix for #32 for review

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: <nanomsg@xxxxxxxxxxxxx>
  • Date: Tue, 26 Feb 2013 10:47:55 +0100

On 2013-02-25 22:32, Martin Sustrik wrote:

At most 6 fds for signalling to the user (pipe/socketpair/eventfd for each of NN_SNDFD, NN_RCVFD, NN_ERRFD).

But they should be counted on the user side?

And why 3 channels and not 1 for signaling any event?

I somehow mitigated this in the latest trunk:

1. NN_ERRFD option was removed. Instead both NN_SNDFD and NN_RCVFD are signaled. 2. For unidirectional sockets (send-only or recv-only) the NN_SNDFD/NN_RCVFD option doesn't exist.

Thus we can get as low as 3 fds/socket on Linux, or 4 fds/socket on OSX.

Martin

Other related posts: