Loading
example/hello_sock: reduce spdk_sock_recv() logs on errors
When error is reported from spdk_sock_recv(), we still let the hello_sock_recv_poll() poller to execute for one more second via hello_sock_close_timeout_poll(). Few cases where we perform negative tests with expected failures, generates pretty long logs in order of megabytes. This patch uses newly added SPDK_ERRLOG_RATELIMIT() to limit to one error message per second. While not completely necessary, prevent attempting to call hello_sock_quit() multiple times while draining. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: If1f8feecd0a0e0d0650e0feaf9230af40cb6c0f3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22514 Reviewed-by:
Krzysztof Karas <krzysztof.karas@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>