Skip to content
This repository was archived by the owner on Sep 29, 2024. It is now read-only.

implement explicit-exit-notify #29

Closed
ghost opened this issue Oct 7, 2018 · 3 comments
Closed

implement explicit-exit-notify #29

ghost opened this issue Oct 7, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented Oct 7, 2018

       --explicit-exit-notify [n]
              In UDP client mode or point-to-point mode, send  server/peer  an
              exit  notification  if tunnel is restarted or OpenVPN process is
              exited.  In client mode, on exit/restart, this option will  tell
              the  server  to  immediately  close  its  client instance object
              rather than waiting for a timeout.  The n parameter  (default=1)
              controls the maximum number of attempts that the client will try
              to resend the exit notification message.

              In UDP server mode, send RESTART control channel command to con‐
              nected  clients.  The  n  parameter  (default=1) controls client
              behavior. With n = 1 client will attempt  to  reconnect  to  the
              same server, with n = 2 client will advance to the next server.

              OpenVPN  will not send any exit notifications unless this option
              is enabled.

This option can be pushed to the client by the server. The server can also send the notification to the client in case the server restarts or shuts down.

@ghost
Copy link
Author

ghost commented Oct 8, 2018

I think it may actually make sense to (when using UDP) always send this exit notify when disconnecting, independent on whether or not the server pushes this. What do you think?

@ghost
Copy link
Author

ghost commented Mar 15, 2019

The reason for wanting this is that when the client disconnects the server doesn't know the client is gone and has to wait for the "ping timeout" while keeping a "ghost" connection up for no reason...

@keeshux keeshux modified the milestones: 1.5.0, 1.5.1 Mar 20, 2019
@keeshux keeshux self-assigned this Mar 20, 2019
@keeshux keeshux added the enhancement New feature or request label Mar 20, 2019
@ghost
Copy link
Author

ghost commented Sep 6, 2019

It turns out this is only part of the fix. The server can also send an exit-notify to the client when the server is about to shut down. This is important when using UDP, otherwise it will take quite some time for client to find out that it should try to reconnect...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant