+25
−3
+3
−4
+10
−3
Loading
Most of the devices need to send RPCs during initialization (e.g. create a transport), so we need to take care that they're initialized only after we are certain that the SPDK process is listening. The mechanisim is similar to the `waitforlisten` function used in our test scripts - it sends a series of `rpc_get_methods` calls and times out after a period of time if no response is received. For now, the timeout is hardcoded to 60s. Signed-off-by:Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Iddadc04ad4c486d2894bc40e1a899a9d204400fc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11802 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>