|author||Krishnan Parthasarathi <email@example.com>||2012-06-30 17:04:26 +0530|
|committer||Anand Avati <firstname.lastname@example.org>||2012-06-30 09:22:16 -0700|
rpc: Fixed ping timer algo.
The purpose of the ping timer is to assert the absence of any evidence the server is possibly alive. The current implementation updates the 'last_sent' timer in the following points in time, - rpc_clnt_submit: when rpc messages are being queued at the transport layer. (wrong!, since we have no way to determine if server actually received the message) - rpc_clnt_notify: when client receives pollout event on sending a message on the 'wire'. (correct, since it indicates ACK from server) The fix removes the 'incorrect' update of 'last_sent'. Change-Id: I56af7b15c3672673696977a7c50ee66eafa4ec55 Signed-off-by: Krishnan Parthasarathi <email@example.com> Reviewed-on: http://review.gluster.com/3625 Tested-by: Gluster Build System <firstname.lastname@example.org> Reviewed-by: Anand Avati <email@example.com>
Diffstat (limited to 'rpc/rpc-lib/src/protocol-common.h')
0 files changed, 0 insertions, 0 deletions