[ovs-git] Open vSwitch: jsonrpc: Return received JSON-RPC messages immediately in jsonrpc_recv(). (master)

dev at openvswitch.org dev at openvswitch.org
Thu Apr 3 23:13:11 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  79bda8258b5365438a70d08c74fab903f1dc0a29 (commit)
      from  6b83a3c5c37a07118681a3738ec776a7d8485a3f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 79bda8258b5365438a70d08c74fab903f1dc0a29
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=79bda8258b5365438a70d08c74fab903f1dc0a29
Author: Ben Pfaff <blp at nicira.com>
		
jsonrpc: Return received JSON-RPC messages immediately in jsonrpc_recv().
		
Until now, jsonrpc_recv() used separate iterations of its loop to receive
data, feed it to the JSON-RPC parser, and return the received message.
This is unnecessarily complicated and can occasionally mean that the
jsonrpc object has received and parsed but not returned a message.  This
commit refactors the code to receive data, feed it to the parse, and
return the received message in a single iteration, and simplifies the code
in the process.

Reported-by: Chris Hydon <chydon at aristanetworks.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 AUTHORS       |    1 +
 lib/jsonrpc.c |   72 +++++++++++++++++++++++++++++----------------------------
 2 files changed, 38 insertions(+), 35 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list