package conduit-async

  1. Overview
  2. Docs
Network conduit library

Install

Dune Dependency

Authors

Maintainers

Sources

conduit-1.0.0.tbz
sha256=2b3c74998af84fb6ac1e0f81d8881401adf14b64fa54e7717e797bb2ccc3d1cc
md5=4656f150b9f98603c21d00c8f0aa1a9b

CHANGES.md.html

v1.0.0

Details on changes: https://discuss.ocaml.org/t/ann-major-releases-of-cohttp-conduit-dns-tcpip/571

Port build to jbuilder, and break up OPAM packages into multiple independent packages instead of being optional dependencies against the main conduit package. This makes it significantly easier to depend on precisely the libraries you need, but requires porting applications to use the new ocamlfind and opam scheme.

The new package layout is:

  • conduit: the main Conduit module

  • conduit-lwt: the portable Lwt implementation

  • conduit-lwt-unix: the Lwt/Unix implementation

  • conduit-async the Jane Street Async implementation

  • mirage-conduit: the MirageOS compatible implementation

In each of these packages, the opam and ocamlfind package names are now the same, so you will need to rename the former subpackages such as conduit.async to conduit-async. The implementation is otherwise the same, so no other code changes should be required.

In return for these breaking changes to the packaging, it is now significantly easier to depend on a particular backend, also for us to rev the interfaces towards a stable 1.0 release. Jbuilder also builds the source tree around 4x faster than it did previously.

There are still some optional dependencies remaining, most notably the tls and ssl packages. If they are present, then conduit will be compiled with TLS support.

0.15.4 (2017-05-31)

  • Lwt: Fix meta file and building with lwt_ssl (#222, @dkim)

0.15.3 (2017-05-04)

  • Lwt: lwt 3.0 support for the tls backend too (#219, @@rgrinberg)

0.15.2 (2017-05-02)

  • Move cstruct dependency from conduit to mirage-conduit

0.15.1 (2017-04-25)

  • Lwt: Lwt 3.0 support (#214)

  • Async: with_connection (#211)

0.15.0 (2017-02-23)

  • support MirageOS 3, and drop support for earlier versions (#203, #202)

0.14.5 (2017-01-24)

  • Fix exception swallowing (#206)

0.14.4 (2017-01-03)

  • Fix tests (#195)

0.14.3 (2017-01-03)

  • Fix mirage-conduit (@samoht, #188)

  • Use ppx_driver's ocamlbuild plugin (@rgrinberg, #193)

0.14.2 (2017-01-01)

  • Fix discover.ml (#191)

0.14.1 (2016-12-29)

  • Tests: do not link with lwt.ssl if it is not installed (#186)

0.14.0 (2016-12-25)

  • Add listening backlog option and increase it to 128 by deafult (#151)

  • Add IP based URI support

  • Fix server stop issues for all Lwt servers

  • Add Logs based logging to Lwt server errors (#172)

  • Add on_exn hook to Lwt servers (#181)

  • Limit maximum number of active connections (#116)

0.13.0 (2016-09-18):

  • Fix build system to stop compiling things twice (#137)

  • Lwt: pass uncaught exceptions in server callback to async_exception_hook (#143)

  • Lwt: stop printing stuff to stdout (#143)

  • Async: fix swallowing of exceptions

  • Async: add backlog argument to serve

0.12.0 (2016-04-30):

  • Convert build system to use PPX instead of Camlp4.

  • Call set_close_on_exec on Lwt_unix listen sockets (#123)

0.11.0 (2016-03-25):

  • Minimum OCaml version is now 4.02.0

  • Add multi-distro Travis testing script.

  • Switch to using pa_sexp_conv for latest sexp.

  • Support Core/Async >=113.24

  • Fix vchan example code, and use functoria-style mirage for it (#108 via @jonludlam)

  • [async] Add an Ssl_unsupported exception for Async rather than just raising Failure

  • Workaround for infinite loop when failing to accept new connections (Edwin Torok #115)

  • Support TLSv1.1 and TLSv1.2 with openssl backend (Edwin Torok #115)

  • Fix FD leak with the openssl backend (Edwin Torok #115)

0.10.0 (2015-12-25):

  • Add support for CA certificates in [Conduit_async.serve] (#98).

  • Fix file descriptor leak in Lwt backend (#101 from @hannesm).

  • Server in Conduit_lwt_tls waits for a user callback to finish before accepting more connections. Instead, it should only wait until the connection is accepted and detach client callback (#97).

  • Close socket when ssl_accept fails, e.g. when cipher negotiation mismatch (#104).

0.9.0 (2015-10-14):

  • Add a Launchd argument for the Conduit_lwt_unix server listener to support the MacOSX service launcher (#96).

0.8.8 (2015-09-15):

  • Expose a new functor Conduit_mirage.With_tcp (#92, by @Drup)

  • Expose a new functor: Resolver_mirage.Make_with_stack to build a DNS resolver using an existing network stack (#92, by @Drup)

  • Expose Resolver_mirage.S, the signature for Mirage's conduit resolvers than can perform DNS lookups. These resolvers now expose their DNS implmentation as a submodule (#92, by @Drup)

  • Expose a ?version arg in Conduit_async_ssl.ssl_listen, default being TLS 1.2 (#94, by @vbmithr)

0.8.7 (2015-08-18):

  • Do not ignore custom context when calling Conduit_lwt_unix_ssl.accept (reported by @jrb467 in #88)

  • Conduit_lwt_unix.Serve now passes the client flow to the server callback instead of the listening server one. This lets servers retrieve the peer endpoint correctly (reported by @fxfactorial in #87)

0.8.6 (2015-07-14)

  • Add a Conduit_mirage.Context, a functor for creating HTTP(s) conduit contexts (with a DNS resolver).

0.8.5 (2015-07-12)

  • Fix client-side https:// resolution for Conduit_mirage

0.8.4 (2015-05-29):

  • Full support for ocaml-tls.0.5.0

  • Breaking API change for mirage-conduit. Now all the flows are dynamic, the functors are becoming first-class values so no big functor to build first.

0.8.3 (2015-05-04):

  • Partial support for ocaml-tls.0.5.0

  • setsockopt TCP_NODELAY fails on a Unix domain socket (#63 by @djs55)

0.8.2 (2015-04-18):

  • Make TLS optional in Conduit_mirage, and disable it by default so that it is a developer-only option until it is properly released. It can be enabled by setting the HAVE_MIRAGE_LWT env variable.

0.8.1 (2015-04-17):

  • Support Async_SSL version 112.24.00 and higher.

  • Add a TLS echo server in tests/async/

  • [lwt] Do not leak socket fd when a connect or handshake operation fails (#56 via Edwin Torok).

  • [async] Do not leak pipes in SSL handling (#54 from Trevor Smith).

0.8.0 (2015-03-27):

  • Add TLS client support for Mirage (#50)

  • Do not overwrite the default name resolver for Mirage (#49)

  • Add TLS support using the pure OCaml TLS stack (#46).

  • Replace the Mirage Make_flow functor with Dynamic_flow that is easier to extend with more flow types.

0.7.2 (2015-01-26):

  • Add an error_message function to simplify error display (#38).

  • Improvements to documentation (#37).

0.7.1 (2014-12-05):

  • Do not emit debug output when the CONDUIT_DEBUG variable is not set.

  • Do not create symlinks in a local build, which helps with OPAM pins.

  • Improve ocamldoc for Conduit_lwt_unix.

0.7.0 (2014-12-04):

  • Add Lwt-unix support for the native OCaml/TLS stack as an alternative to OpenSSL. This can be activated by setting the CONDUIT_TLS environment variable to native. If this is not set and OpenSSL is available, then OpenSSL is used by in preference to the pure OCaml implementation.

  • Add sexp convertors for Conduit_lwt_unix.ctx and Conduit_mirage.ctx and the Resolver service types.

  • Fix the Mirage tests to the Mirage 2.0.1+ Conduit interfaces.

  • Add more debugging output when the CONDUIT_DEBUG variable is set on Unix.

  • Interface breaking: The client and server types in Conduit_lwt_unix now explicitly label the fields of the tuples with a polymorphic variant. This allows them to remain independent of this library but still be more self-descriptive (i.e. Port of int instead of just int).

0.6.1 (2014-11-07):

  • When terminating conduits, always close the output channel first before the input channel, so that any pending data in the underlying fd is flushed.

0.6.0 (2014-11-04):

  • Add an explicit ctx content to track every conduit's runtime state.

  • Allow the source interface for a conduit to be set.

  • Support a password callback for the SSL layer (#4).

  • [lwt] Add stop parameters in main-loop of the server (#5).

  • Add Conduit_mirage with Mirage functor suport.

  • Add ocamldoc of most interfaces.

  • Add a CONDUIT_DEBUG environment variable to the Unix backends for live debugging.

  • Add a conn value to the callback to query more information about the current connection (#2).

  • Expose the representation of Conduit_lwt_unix.flow in the external signature. This lets library users obtain the original Lwt_unix.file_descr when using Conduit libraries like Cohttp.

0.5.1 (2014-08-07):

  • Reenable Async SSL by default.

0.5.0 (2014-04-13):

  • First public release.

OCaml

Innovation. Community. Security.