X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcl_private.h;h=b50bad26b9052e26effdd517558bb5551c91816b;hb=067f9544d52c95c0b60b0e8425fce1e295120180;hp=faab1c2282b30a443a3623aa72637c5becc8de3a;hpb=a357a938019c8df2b061cc5bd14cd8a64fac694f;p=vpp.git diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index faab1c2282b..b50bad26b90 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -543,8 +543,8 @@ vcl_session_is_closing (vcl_session_t * s) static inline int vcl_session_closing_error (vcl_session_t * s) { - return s->session_state == STATE_DISCONNECT - ? VPPCOM_ECONNRESET : VPPCOM_ECONNABORTED; + /* Return 0 on closing sockets */ + return s->session_state == STATE_DISCONNECT ? VPPCOM_ECONNRESET : 0; } static inline int