]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsockets: Support calling listen multiple times on same rsocket
authorSean Hefty <sean.hefty@intel.com>
Thu, 4 Sep 2014 18:19:28 +0000 (11:19 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 4 Sep 2014 18:19:28 +0000 (11:19 -0700)
commitded4d988b734e4cafbbbd08d9687486b02497616
treefb8034c0375f7cb5f3331052907ca2fcd47aee53
parentcf7aae3d0cc460eee6b2904172b6442d774a0af4
rsockets: Support calling listen multiple times on same rsocket

Standard sockets allows an application to call listen() multiple
times on the same socket without error.  This allows a multi-threaded
app to call listen from all threads.

rsockets will fail the second listen call.  Modify the behavior to
match standard sockets.

Problem reported by: Sreedhar Kodali <srkodali@linux.vnet.ibm.com>

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