Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add delay_tunnel_reason and delay_close
- As long as the protocol-specific mainloop sets delay_tunnel_reason to a non-NULL value, tunnel device creation will be delayed. - If delay_close is set, mainloop will continue to iterate even if cancel_cmd or pause_cmd is set. A protocol should set DELAY_CLOSE_IMMEDIATE_CALLBACK for the case where its mainloop needs an immediate callback (e.g. to send some kind of termination request), and DELAY_CLOSE_WAIT for the case where its mainloop is waiting to receive something (e.g. a termination acknowledgement). openconnect_mainloop() will unset both delay_tunnel_reason and delay_close on each iteration. A protocol mainloop must thus affirmatively extend a delay in order for it to continue. Signed-off-by: Daniel Lenski <dlenski@gmail.com>
- Loading branch information
Showing
3 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -712,4 +712,3 @@ void dtls_detect_mtu(struct openconnect_info *vpninfo) | |
skip_mtu: | ||
free(buf); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters