Spdk/lib/jsonrpc
Tomasz Zawadzki 161a300275 VPP: change sockets from FIONBIO to O_NONBLOCK type
There are two ways to set stockets to nonblocking type:
- ioctl with FIONBIO
- fcntl with O_NONBLOCK
Those two should be equivalent for sockets used in SPDK.

During testing it was shown that VPP interprets only
the second type, so this patch changes all occurences of it.

When here, more descriptive error logs were set in case of
failure.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Ifa5b30e3a4fa04fe23f41fa2ae9dab4b01dd7d3c
Reviewed-on: https://review.gerrithub.io/388816
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-11-29 11:23:32 -05:00
..
jsonrpc_internal.h jsonrpc: simplify by removing use of poll() 2017-07-18 17:00:54 -04:00
jsonrpc_server_tcp.c VPP: change sockets from FIONBIO to O_NONBLOCK type 2017-11-29 11:23:32 -05:00
jsonrpc_server.c log: rename SPDK_TRACELOG to SPDK_DEBUGLOG 2017-08-29 13:25:58 -04:00
Makefile build: include spdk.common.mk in lib Makefiles 2016-07-18 16:17:40 -07:00