hsa: fix proxy ao connect

Make sure that proxy server doesn't try to open connection to the
target multiple times. When client is uploading huge amount of data
it might happen that proxy_rx_callback is called again before
connection to the target is established.

Type: fix
Change-Id: I4d272d37bc545f6f8790a115c8d26bcf3ea84f22
Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:
Matus Fabian
2024-09-13 16:22:27 +02:00
parent 9a3f387c30
commit 6fbe913e45

View File

@@ -368,6 +368,13 @@ proxy_rx_callback (session_t * s)
u32 max_dequeue, ps_index;
int actual_transfer __attribute__ ((unused));
/* maybe we were already here */
if (ps->active_open_establishing)
{
clib_spinlock_unlock_if_init (&pm->sessions_lock);
return 0;
}
rx_fifo = s->rx_fifo;
tx_fifo = s->tx_fifo;