From: Ben Pfaff Date: Fri, 11 Jun 2010 21:39:13 +0000 (-0700) Subject: jsonrpc: Propagate error code to reconnect_disconnected(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41630cfbc3230ee48d6b4031ec6cffba2cbb3d10;p=openvswitch jsonrpc: Propagate error code to reconnect_disconnected(). Always passing 0 to reconnect_disconnected() means that it uses a generic log message ("connection dropped"). By passing the error code, as done by this commit, reconnect_disconnected() can log a more specific message. --- diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index bb4f6baf..13ec4257 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -802,7 +802,7 @@ jsonrpc_session_run(struct jsonrpc_session *s) jsonrpc_run(s->rpc); error = jsonrpc_get_status(s->rpc); if (error) { - reconnect_disconnected(s->reconnect, time_msec(), 0); + reconnect_disconnected(s->reconnect, time_msec(), error); jsonrpc_session_disconnect(s); } } else if (s->stream) {