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 SHUTDOWNABLE signature #17

Closed
wants to merge 3 commits into from
Closed

Conversation

djs55
Copy link
Member

@djs55 djs55 commented Jun 22, 2016

This was a misunderstanding over the semantics of close which have been clarified upstream. Since it's a backwards-incompatible change we also bump the version to 2.0.0.

This PR shouldn't be merged until the users of this signature have been ported to the vanilla V1_LWT.FLOW signature:

djs55 added 3 commits June 22, 2016 09:32
This follows the clarification that `V1_LWT.close` follows the behaviour
of the Mirage tcp/ip stack i.e. it signals a "shutdown" to the remote
(like sending an `Eof`) while leaving the resources allocated and
the connection up. Implementations which associate extra resources with
a connection (such as a file descriptor or socket buffers) need provide
some other cleanup method (e.g. a `disconnect` function)

Fixes mirage#16

Signed-off-by: David Scott <dave@recoil.org>
This is a backwards-incompatible change so bump the major version.

Signed-off-by: David Scott <dave@recoil.org>
Signed-off-by: David Scott <dave@recoil.org>
@yomimono
Copy link
Contributor

It's been rather quiet, so I'll mention that I'm in favor of this change but need to do some work on vpnkit to support it.

@hannesm
Copy link
Member

hannesm commented Oct 7, 2017

wondering what the status hereof is? I'm always in favour of removing code, esp. if it is confusing.

@yomimono
Copy link
Contributor

yomimono commented Oct 9, 2017

^ @djs55 , since I no longer do any work on vpnkit and honestly have no memory of what the state of this is 😅

@hannesm
Copy link
Member

hannesm commented May 5, 2018

ping, @djs55 any chance you can rebase this PR?

hannesm added a commit to hannesm/mirage-flow that referenced this pull request Sep 2, 2022
… unit Lwt.t

Also removes SHUTDOWNABLE signature (mirage#17)
Superseeds mirage#18 (which proposed disconnect)
@hannesm
Copy link
Member

hannesm commented Dec 17, 2023

integrated into #48

@hannesm hannesm closed this Dec 17, 2023
hannesm added a commit to hannesm/opam-repository that referenced this pull request Dec 17, 2023
…rs (4.0.0)

CHANGES:

- Add ``shutdown : flow -> [ `read | `write | `read_write ] -> unit Lwt.t``
  (@djs55 @hannesm mirage/mirage-flow#16 mirage/mirage-flow#18 mirage/mirage-flow#48)
- Remove SHUTDOWNABLE signature (@djs55 mirage/mirage-flow#17, rebased into mirage/mirage-flow#48)
hannesm added a commit to hannesm/opam-repository that referenced this pull request Dec 19, 2023
…rs (4.0.0)

CHANGES:

- Redefine `close` semantics, which no longer is a `` shutdown `read_write ``
  (mirage/mirage-flow#49 @hannesm)
- Add ``shutdown : flow -> [ `read | `write | `read_write ] -> unit Lwt.t``
  (@djs55 @hannesm mirage/mirage-flow#16 mirage/mirage-flow#18 mirage/mirage-flow#48)
- Remove SHUTDOWNABLE signature (@djs55 mirage/mirage-flow#17, rebased into mirage/mirage-flow#48)
hannesm added a commit to hannesm/opam-repository that referenced this pull request Dec 19, 2023
…rs (4.0.0)

CHANGES:

- Redefine `close` semantics, which no longer is a `` shutdown `read_write ``
  (mirage/mirage-flow#49 @hannesm)
- Add ``shutdown : flow -> [ `read | `write | `read_write ] -> unit Lwt.t``
  (@djs55 @hannesm mirage/mirage-flow#16 mirage/mirage-flow#18 mirage/mirage-flow#48)
- Remove SHUTDOWNABLE signature (@djs55 mirage/mirage-flow#17, rebased into mirage/mirage-flow#48)
nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
…rs (4.0.0)

CHANGES:

- Redefine `close` semantics, which no longer is a `` shutdown `read_write ``
  (mirage/mirage-flow#49 @hannesm)
- Add ``shutdown : flow -> [ `read | `write | `read_write ] -> unit Lwt.t``
  (@djs55 @hannesm mirage/mirage-flow#16 mirage/mirage-flow#18 mirage/mirage-flow#48)
- Remove SHUTDOWNABLE signature (@djs55 mirage/mirage-flow#17, rebased into mirage/mirage-flow#48)
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.

3 participants