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

add server type (`Listening_socket of Lwt_unix.file_descr) #282

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

timbertson
Copy link
Contributor

Fixes #281 . The variant had to be of type sexp_opaque because file_descr is abstract. That would cause a runtime error trying to serialize one of these, but I assume it won't break other variants.

(network buffs: is "listening socket" the right description for an inherited systemd socket? AFAIK you don't need to call listen but you do need to call accept on such a socket, so it sounds right to me)

@avsm
Copy link
Member

avsm commented Jan 7, 2019

This looks right to me -- just requesting another review from @djs55 who wrote the launchd backend

@timbertson
Copy link
Contributor Author

bump?

@avsm
Copy link
Member

avsm commented Jul 15, 2019

Merging, thanks!

@avsm avsm merged commit ad9970f into mirage:master Jul 15, 2019
avsm added a commit to avsm/opam-repository that referenced this pull request Jul 15, 2019
…nd mirage-conduit (1.5.0)

CHANGES:

* lwt-unix: Do not close file descriptors more than once, which led to a lot of
  log spam due to EBADF (mirage/ocaml-conduit#294 @hcarty @avsm)
* lwt-unix: Always close channels after handling an event (mirage/ocaml-conduit#283 @hcarty)
* Allow TCP to be established from existing file descriptors
  (for example, an inherited systemd socket) (mirage/ocaml-conduit#144 @SGrondin mirage/ocaml-conduit#282 @timbertson)
* async: add `Conduit_async.V3` which provides convenience functions for
  resolving URIs to addresses (mirage/ocaml-conduit#287 @vbmithr)
* `Lwt_ssl`: Enable certification validation (mirage/ocaml-conduit#291 @vouillon)
* `Async_ssl`: fix exception raised when other side disconnects
  due to sharing underlying fd (mirage/ocaml-conduit#295 @bogdan2412)
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.

Support systemd socket activation, binding a server to an open Unix.file_descr
2 participants