]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
add delay_close and use it for clean PPP termination on cancel, pause, or server...
authorDaniel Lenski <dlenski@gmail.com>
Sun, 17 May 2020 02:31:22 +0000 (19:31 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Sun, 17 May 2020 05:21:48 +0000 (22:21 -0700)
commitfcc9deaac886fce1a542be765f9d5fcb76d1a9a9
tree798adc72dffe4a4753f5254b62c01f414def74c2
parenta207d54885d16f782f908ddc7b32e048c7f8484a
add delay_close and use it for clean PPP termination on cancel, pause, or server-sent termination

Whatever delay_close is set to decrements on each mainloop iteration, and
if delay_close == 1, we don't set work_done.

This allows us to set delay_close = 2 for the case where we need to send a termination request
immediately, and then wait briefly for an acknowledgment.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
f5.c
mainloop.c
openconnect-internal.h
ppp.c