]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rstream: Set rsocket nonblocking if set to async operation
authorSean Hefty <sean.hefty@intel.com>
Wed, 16 May 2012 22:23:41 +0000 (15:23 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 16 May 2012 22:57:00 +0000 (15:57 -0700)
commita184890ccc7ad7f83a9f2c84643286c9efb2a75b
tree8fde2d81ba8df54624406b0a9293e9aca478d450
parent53932f9c5925f54b15f98fe644d872d7ac4722a7
rstream: Set rsocket nonblocking if set to async operation

If asynchronous use is specified (use of poll/select), set the
rsocket to nonblocking.  This matches the common usage case for
asynchronous sockets.

When asynchronous support is enabled, the nonblocking/blocking
test option determines whether the poll/select call will block,
or if rstream will spin on the calls.

This provides more flexibility with how the rsocket is used.
Specifically, MPI often uses nonblocking sockets, but spins on
poll/select.  However, many apps will use nonblocking sockets,
but wait on poll/select.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/rstream.c