session: lookup listener with iface address 73/32173/6
authorliuyacan <liuyacan@corp.netease.com>
Fri, 30 Apr 2021 08:57:37 +0000 (08:57 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 3 May 2021 15:13:32 +0000 (15:13 +0000)
commit694046cf8eef9c8ec1313ebe8327bfebc2a11522
treed844a9be749dfb6633918f8c8e3f46ff7e0819cf
parent94b80770ffd35c20beb303bc2a6e81b2c6163ba6
session: lookup listener with iface address

We add interface address to the global lookup table, so we should
use it as the key when lookup listener. Otherwise, when multiple
threads listen on 0.0.0.0 (local scope disable), duplicate
listeners and sessions would be allocated but only one works.

Type: fix

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