faultproxy

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command faultproxy is an HTTP proxy that fails on purpose, for the acceptance harness's fault kit (the project's plan/prime-time- environment.md): set as HTTPS_PROXY, it makes every connection dockhand asks for stall, reset, or answer 502, or tunnels it through unchanged; stall-body tunnels it until the host has sent -after bytes, past TLS's handshake and a response's headers, then sends no more, so the stall falls in a body, not the handshake. It tunnels without decrypting, so it can cut a connection but never rewrite one.

faultproxy -mode stall|stall-body|reset|5xx|pass [-after 65536] [-listen 127.0.0.1:0]

It prints the address it listens on, one line, then serves until it is stopped, logging each request's method and host, so a row can show which hosts dockhand asked.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL