vcl: set STATE_UPDATED state when connect with non-blocking socket!

State set to STATE_UPDATED to ensure the session is not assumed to be open and to also allow the app to close it prior to vpp's connected reply!

Type: fix

Signed-off-by: fanyf <fanyufei521@outlook.com>
Change-Id: I7a6d0914599cb9296d112205dac725ecd11a5d0f
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index f1bb2b0..6b9e36c 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -1723,7 +1723,10 @@
 
   if (VCL_SESS_ATTR_TEST (session->attr, VCL_SESS_ATTR_NONBLOCK))
     {
-      session->session_state = STATE_CONNECT;
+      /* State set to STATE_UPDATED to ensure the session is not assumed
+       * to be open and to also allow the app to close it prior to vpp's
+       * connected reply. */
+      session->session_state = STATE_UPDATED;
       return VPPCOM_EINPROGRESS;
     }