From 67fe778546683d678015cc0089bbe475cb6a6f22 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 2 Sep 2020 10:51:10 -0700 Subject: tcp: fix connection refused error Type: fix Signed-off-by: Florin Coras Change-Id: I436741e061f11685980a71fb3989befc7af1e081 --- src/vnet/tcp/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet') 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: -- cgit 1.2.3-korg