]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Update correct rsocket keepalive time
authorSean Hefty <sean.hefty@intel.com>
Thu, 3 Jul 2014 20:45:52 +0000 (13:45 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 3 Jul 2014 20:57:21 +0000 (13:57 -0700)
commitfa85dc408e28afd67b81c3a590fd874ef6fdc63a
tree3d6d8dad77ede2b64d4a50ba38465b6bfe966817
parent1695abfa9f6bf429a5aa07117310c4ad87d4b3ae
rsocket: Update correct rsocket keepalive time

When the keepalive time of an rsocket is updated, the
updated information is forwarded to the keepalive service
thread.  However, the thread updates the time for the
wrong service as shown:

tcp_svc_timeouts[svc->cnt] = rs_get_time() + msg.rs->keepalive_time;

The index into tcp_svc_timeouts should correspond to the
rsocket being updated, not the last one in the list.

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