summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-02-03 16:00:56 +0000
committerDave Barach <openvpp@barachs.net>2020-02-06 15:04:24 +0000
commit190dc1f6782eba4c49511636570eef678d1bac16 (patch)
treef2c2268f906c705cbf7bd61b01effe9637a05fef
parent707b5369f83f9ecf31ee255f4ff1dadc08c6107b (diff)
vcl: fix session closing error
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I94f1365569e98d43486d9528faafc6d7c3ad88f7
-rw-r--r--src/vcl/vcl_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index f9fa066e474..4b08b65e929 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -544,7 +544,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 : 0;
+ return s->session_state == STATE_DISCONNECT
+ ? VPPCOM_ECONNRESET : VPPCOM_ECONNABORTED;
}
static inline int