package async

  1. Overview
  2. Docs
Monadic concurrency library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=3edbaa62a7ea910da0d5c06974da9b2b7e14a9e2648596bc7c9f09c89970b5f8

doc/async.async_rpc/Async_rpc/Rpc/For_debugging/index.html

Module Rpc.For_debuggingSource

Sourceval enable_dumping_buffers_on_deserialization_errors : ?path_override:Core.Filename.t -> unit -> unit

If called, then when a message is not the expected length, or when bin_io deserialization fails, dump the buffer being read to a file under /dev/shm for later debugging. The default is to not dump any buffers in these cases. The file may be overridden by passing path_override

This is intended to be enabled in the background to debug applications that are occasionally seeing apparent message corruption, to help debug. It can also be enabled by setting the ASYNC_RPC_DEBUG_DUMP_DESERIALIZATION_ERRORS environment variable, in which case errors will be written to the path specified by the env var (relative to /dev/shm if the path contains no ‘/’).

OCaml

Innovation. Community. Security.