session: avoid vpp deadlock due to app crash 43/33243/1
authorliuyacan <liuyacan@corp.netease.com>
Sat, 24 Jul 2021 06:30:51 +0000 (14:30 +0800)
committerliuyacan <liuyacan@corp.netease.com>
Sat, 24 Jul 2021 06:50:07 +0000 (14:50 +0800)
commit9609e26f8712246f62d54c1178aefce57e3b6c06
tree2390801691c7bb4628ec0ebf22f2d483e697c420
parent7cb471a0279ab2a3740a49d6ce9cf7b24f0a3f4d
session: avoid vpp deadlock due to app crash

In high traffic scenarios, if app crashed or hang on somewhere, app_mq
will quickly accumulate to full, after which vpp worker will try 100
times before giving up allocating slot for every msg. This will cause
vpp main thread barrier sync to fail.

Type: fix

Signed-off-by: liuyacan <liuyacan@corp.netease.com>
Change-Id: I2b2bf2b272c5b3ca7e4a56af179af12bbcde149d
src/vnet/session/session_api.c