numam-spdk/lib/jsonrpc
yidong0635 17c006a7c3 lib/jsonrpc: Fix memory leaks about connection request.
There're outstanding requests in spdk_jsonrpc_parse_request which caused by
	connection close.
There are methods to call spdk_jsonrpc_server_conn_close, including
	spdk_jsonrpc_server_conn_remove and spdk_jsonrpc_server_shutdown,
Some rpc methods call these functions to terminate connections ,that leads to
	memory leaks.
Try to free outstanding requests after deciding to terminate a connection.
And do this follwing with close(conn->sockfd).

Fix issue #784, and can resolve other similar memory leaks about this.

Signed-off-by: yidong0635 <dongx.yi@intel.com>
Change-Id: Icd287bd0c5670ee8ec32750b999f82b0fa89cf84
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458438
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-06-26 06:26:50 +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 lib/jsonrpc: Fix memory leaks about connection request. 2019-06-26 06:26:50 +00:00
jsonrpc_server.c jsonrpc: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00