moby / vpnkit

A toolkit for embedding VPN capabilities in your application
Apache License 2.0
1.1k stars 187 forks source link

Reconnect the connection multiplexer on failure #456

Closed djs55 closed 5 years ago

djs55 commented 5 years ago

On the Mac a connection to vpnkit-forwarder is first accepted by hyperkit and forwarded. If vpnkit-forwarder hasn't started yet then the connection is immediately closed-- this permanently breaks the forwarding.

This PR makes the client reconnect if the multiplexer dispatcher has shutdown.

djs55 commented 5 years ago

Looks like CircleCI is broken with

#!/bin/bash -eo pipefail
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/72ce8812eaa33abe23533dfa021b51351a6b9c3e/Formula/opam.rb
^D^DUpdating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).
No changes to formulae.

######################################################################## 100.0%
Error: opam: "cxx11" is not a recognized standard
Exited with code 1