summaryrefslogtreecommitdiff
path: root/rc/bin/rc-httpd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-01-05 18:20:47 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-01-05 18:20:47 +0100
commitf12744b5db76e862de58aaa54cbd5ddfc63905b0 (patch)
tree3823443b6a66fd8a5d4114fba5257bed1554cc76 /rc/bin/rc-httpd
parent645b5f8724c0116d974680bdb591320256cc36e0 (diff)
downloadplan9front-f12744b5db76e862de58aaa54cbd5ddfc63905b0.tar.xz
devip: fix packet loss when interface is wlocked
to prevent deadlock on media unbind (which is called with the interface wlock()'ed), the medias reader processes that unbind was waiting for used to discard packets when the interface could not be rlocked. this has the unfortunate side effect that when we change addresses on a interface that packets are getting lost. this is problematic for the processing of ipv6 router advertisements when multiple RA's are getting received in quick succession. this change removes that packet dropping behaviour and instead changes the unbind process to avoid the deadlock by wunlock()ing the interface temporarily while waiting for the reader processes to finish. the interface media is also changed to the mullmedium before unlocking (see the comment).
Diffstat (limited to 'rc/bin/rc-httpd')
0 files changed, 0 insertions, 0 deletions