Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the "shutdown" protocol used for forwarding ports over Hyper-V sockets #418

Closed
wants to merge 3 commits into from

Conversation

djs55
Copy link
Collaborator

@djs55 djs55 commented Sep 10, 2018

Previously we used a custom protocol on top of Hyper-V sockets because they didn't support shutdown. With modern Windows and modern Linux the shutdown works (at least when the connections are initiated from the host) and therefore the Go linuxkit/virtsock library has dropped the custom protocol. Since we're talking to vpnkit-forwarder using linuxkit/virtsock we must drop the custom protocol too.

This uses an experimental version of mirage/ocaml-hvsock with support for syscall-based shutdown.

@djs55 djs55 force-pushed the shutdown branch 4 times, most recently from f71259d to dbaa9d9 Compare September 13, 2018 10:16
This has a new shutdown API.

Signed-off-by: David Scott <dave.scott@docker.com>
Signed-off-by: David Scott <dave.scott@docker.com>
Previously we used a custom protocol on top of Hyper-V sockets because
they didn't support `shutdown`. With modern Windows and modern Linux the
`shutdown` works (at least when the connections are initiated from the
host) and therefore the Go `linuxkit/virtsock` library has dropped the
custom protocol. Since we're talking to `vpnkit-forwarder` using
`linuxkit/virtsock` we must drop the custom protocol too.

This uses an experimental version of `mirage/ocaml-hvsock` with support
for syscall-based `shutdown`.

Signed-off-by: David Scott <dave.scott@docker.com>
@djs55
Copy link
Collaborator Author

djs55 commented Oct 6, 2018

The hvsock API has changed. I'll close this PR and open a fresh one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant