X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.c;h=0bbdea549403cb84441642022dfb9a2870677016;hb=b2955355cc9a654447d8647e33def67cd27892f6;hp=0e5d4fab328340de3386a765f5c1e96dcebe336c;hpb=ce9bdfe5fcfa6e2acd670ea0063ce5e0fde15096;p=vpp.git diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 0e5d4fab328..0bbdea54940 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -1733,6 +1733,8 @@ vppcom_session_read_internal (uint32_t session_handle, void *buf, int n, { if (is_nonblocking) { + if (vcl_session_is_closing (s)) + return vcl_session_closing_error (s); svm_fifo_unset_event (s->rx_fifo); return VPPCOM_EWOULDBLOCK; }