Skip to content
Snippets Groups Projects

recreate openvpn listener socket only when error is not `net.ErrClosed`

Merged jkito requested to merge bug-64 into main

during the running of the client it might happen that there's an actual error for which we need to restart the UDP listener where openvpn send its traffic, but an error will also be encountered in the copy loop when tearing down the connection, we can filter these types of errors by checking if it is a net.ErrClosed error type and re-create the UDP listener only when the error is not a net.ErrClosed

fixes #64 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading