numam-spdk/lib/jsonrpc
Pawel Wodkowski 122a776326 jsonrpc: process all requests in buffer
If more than one full request is received by a single recv() call only
first one will be parsed. Then next time we call recv() is called it
will return EAGAIN and next request won't be parsed. Fix this by always
parsing all requests in the buffer.

Change-Id: I0a2c72fd0ad6184834b9831bda520a28ab815f0d
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/437161
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-01-10 14:31:37 +00:00
..
jsonrpc_client_tcp.c jsonrpc client: non-blocking mode 2018-12-07 09:41:03 +00:00
jsonrpc_client.c jsonrpc client: non-blocking mode 2018-12-07 09:41:03 +00:00
jsonrpc_internal.h jsonrpc: fix received JSON buffer overwrite 2019-01-10 14:31:37 +00:00
jsonrpc_server_tcp.c jsonrpc: process all requests in buffer 2019-01-10 14:31:37 +00:00
jsonrpc_server.c jsonrpc: fix received JSON buffer overwrite 2019-01-10 14:31:37 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00