udp: fix connections move 30/21130/1
authorAloys Augustin <[email protected]>
Tue, 6 Aug 2019 14:09:01 +0000 (16:09 +0200)
committerFlorin Coras <[email protected]>
Thu, 8 Aug 2019 02:25:24 +0000 (02:25 +0000)
commit7119c22f82312e92cb4d0c43ac0196961532b230
treea463e9faf72a75cfaa073827b88b44fae29eba1a
parent23526f78a8bd5507624a72476550fc604de3a22a
udp: fix connections move

Without this the use of uc0 is racy between the current thread and the
thread that owns it and will delete it.

This also ensures we don't trigger a read event on the session before
moving it to the right thread and notifying the application.

Type: fix
Change-Id: Icb1ca3ee5805ea3c0d2d424d4b23511465deb3b6
Signed-off-by: Aloys Augustin <[email protected]>
(cherry picked from commit b3392334942ed5459edfa7f11e098f4eab3aa29a)
src/vnet/session/session.c
src/vnet/udp/udp_input.c