tcp: fix connection refused error 44/28644/2
authorFlorin Coras <fcoras@cisco.com>
Wed, 2 Sep 2020 17:51:10 +0000 (10:51 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 2 Sep 2020 17:54:31 +0000 (17:54 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I436741e061f11685980a71fb3989befc7af1e081

src/vnet/tcp/tcp_input.c

index de9d891..a86161c 100644 (file)
@@ -164,7 +164,7 @@ tcp_handle_rst (tcp_connection_t * tc)
       tcp_connection_cleanup (tc);
       break;
     case TCP_STATE_SYN_SENT:
-      session_stream_connect_notify (&tc->connection, 1 /* fail */ );
+      session_stream_connect_notify (&tc->connection, SESSION_E_REFUSED);
       tcp_connection_cleanup (tc);
       break;
     case TCP_STATE_ESTABLISHED: