umtrx: max timeout for tx async handler flush

This commit is contained in:
Josh Blum
2015-02-25 16:37:16 -08:00
parent 0509c7b35a
commit fc089a299e

View File

@@ -404,7 +404,12 @@ static void handle_tx_async_msgs(
}
stop_flow_control();
while (not xport->get_recv_buff()){};//flush after fc off
//flush after fc off, max time of 1s
size_t i = 0;
while (not xport->get_recv_buff(0.01))
{
if (i++ > 100) break;
}
}
/***********************************************************************