risefront package - code.pfad.fr/risefront

package risefront enables gracefully upgrading the server behing a tcp connection with zero-downtime (without disturbing running transfers or dropping incoming requests).

Example (http)

Functions

func New

New calls cfg.Run with opened listeners.

The parent will live as long as the context lives. The child will live as long as the parent is alive and no other child has been started.

Types

type Config

type Dialer

Dialer is used for the child-parent communication.

type PrefixDialer

PrefixDialer uses github.com/Microsoft/go-winio.{DialPipe,ListenPipe} on windows and net.{Dial,Listen} on other platforms.

func (PrefixDialer) Dial

func (PrefixDialer) Listen

Files

firstchild_listener.go

prefixDialer.go

proxy.go

risefront.go

socket.go

Forge

https://codeberg.org/pfad.fr/risefront

git clone