From: Florin Coras Date: Wed, 2 Sep 2020 17:51:10 +0000 (-0700) Subject: tcp: fix connection refused error X-Git-Tag: v21.01-rc0~37 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=67fe778546683d678015cc0089bbe475cb6a6f22;p=vpp.git tcp: fix connection refused error Type: fix Signed-off-by: Florin Coras Change-Id: I436741e061f11685980a71fb3989befc7af1e081 --- diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index de9d89181fa..a86161c6d34 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -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: