chiark / gitweb /
svc/conntrack: Make the kickpeers coroutine more robust.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 May 2010 16:35:50 +0000 (17:35 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 May 2010 17:08:40 +0000 (18:08 +0100)
commitcf2e4ea6c40973c25002e84374c194bb5e4c4973
tree2240f95c862f6733ca6f7c89ce90575b9384da23
parent75d9c6fdcc8ca076cd35309c086244d74e77592f
svc/conntrack: Make the kickpeers coroutine more robust.

There are inevitable races between where conntrack enumerates the peers
and when it submits the commands to modify the list.  Also, there's no
guarantee that `connect' -- which we use for initiating peer connections
-- is running at all.  So trap exceptions from the relevant commands and
issue warnings as appropriate.
svc/conntrack.8.in
svc/conntrack.in