Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • v/1-4-3
  • refactor/server-env-parsing
  • pcap
  • maxb/testing-golang-version-validation
  • nix_devshell
  • maxb/gitlab-integration-test-stages
  • log_error
  • feat/add-missing-env
  • maxb/bind-mount-start-scripts
  • obfs4_env
  • go-version
  • fixing-framing
  • refactor-avoid-panic
  • xperimentl
  • android_api
  • builds
  • feat/quic
  • feat/kcp
  • obfsproxy
  • v1.4.2
  • v1.4.1
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.0
  • v0.1.0
28 results

client.go

  • jkito's avatar
    1ac52ff1
    recreate openvpn listener socket when error is not net.ErrClosed · 1ac52ff1
    jkito authored
    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
    1ac52ff1
    History
    recreate openvpn listener socket when error is not net.ErrClosed
    jkito authored
    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