Skip to main content

Module connect

Module connect 

Source
Expand description

A worker’s gRPC channel to the master: plain for an http:// URL, TLS with the worker’s certificate for an https:// one (the master’s certificate must name the URL’s host).

The handshake is done here rather than by tonic, so each connection uses the material in use at that moment (see crate::reload), within the same time limit as the servers’. Internal links never go through an HTTP proxy.

Functions§

channel
Connects to the master at url, over TLS when tls is given.
error_text
The error with its causes, which carry the reason (a refused certificate, say).