diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2023-01-06 02:40:00 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2023-01-06 02:40:00 +0000 |
commit | b01fbf7324625ff36c3a7a2936663c529fd58b9b (patch) | |
tree | f20f397a1eaec733ca3d867b84dc7b9fd9af934c /usr.sbin/bgpd/bgpd.conf.5 | |
parent | 5b30e893eddb4fac25b25d4b633742983fd4261f (diff) |
Add channel_force_close()
This will forcibly close an open channel by simulating read/write errors,
draining the IO buffers and calling the detach function.
Previously the detach function was only ever called during channel garbage
collection, but there was no way to signal the user of a channel (e.g.
session.c) that its channel was being closed deliberately (vs. by the
usual state-machine logic). So this adds an extra "force" argument to the
channel cleanup callback to indicate this condition.
ok markus dtucker
Diffstat (limited to 'usr.sbin/bgpd/bgpd.conf.5')
0 files changed, 0 insertions, 0 deletions