aboutsummaryrefslogtreecommitdiff
path: root/lib/jsonrpc.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-08-08 13:32:57 -0700
committerBen Pfaff <blp@nicira.com>2012-09-07 10:48:43 -0700
commita6f639f8080fe18120bb205609c6e364f6de7e70 (patch)
tree0bc8d22143b241caba7610e1982f72221a6e4b6f /lib/jsonrpc.c
parente0f3585d4499db4ad0f22fd3c4749ba2e9814c33 (diff)
reconnect: Rename reconnect_received() to reconnect_activity().
Receiving data is not the only reasonable way to verify that a connection is up. For example, on a TCP connection, receiving an acknowledgment that the remote side has accepted data that we sent is also a reasonable means. Therefore, this commit generalizes the naming. Also, similarly for the Python implementation: Reconnect.received() becomes Reconnect.activity(). Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/jsonrpc.c')
-rw-r--r--lib/jsonrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
index 57613697..c4d7dd2c 100644
--- a/lib/jsonrpc.c
+++ b/lib/jsonrpc.c
@@ -977,7 +977,7 @@ jsonrpc_session_recv(struct jsonrpc_session *s)
struct jsonrpc_msg *msg;
jsonrpc_recv(s->rpc, &msg);
if (msg) {
- reconnect_received(s->reconnect, time_msec());
+ reconnect_activity(s->reconnect, time_msec());
if (msg->type == JSONRPC_REQUEST && !strcmp(msg->method, "echo")) {
/* Echo request. Send reply. */
struct jsonrpc_msg *reply;