jsonrpc: Treat receiving part of a message as activity.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Sep 2012 20:34:35 +0000 (13:34 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 7 Sep 2012 17:50:21 +0000 (10:50 -0700)
commit3a8d38c88e26f9f76f3c60efbcbead02240c26d0
tree80514af1c9b6720c6929f23bbf162589f4d77fc2
parentf97cae29996cf17190f4ba5cdc62e9abf4386cb6
jsonrpc: Treat receiving part of a message as activity.

Until now, the jsonrpc code has only counted receiving a full JSON-RPC
messages as activity.  This could theoretically time out, then, while a
very long message is in transit or if a slow link is involved.  This commit
changes this code to count receiving any part of a message as activity.

This isn't a problem for OpenFlow connections because OpenFlow messages are
at most 64 kB in size.

This problem hasn't actually been observed in practice.

Bug #12789.
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/jsonrpc.c
lib/jsonrpc.h
python/ovs/jsonrpc.py