CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2026/05/16 09:25:28

Modified files:
        usr.sbin/relayd: relay_http.c 

Log message:
usr.sbin/relayd: handle HTTP responses without bodies

RFC 9112 section 6.3 specifies that responses to HEAD requests, and
responses with 1xx, 204, or 304 status codes, are terminated by the
empty line after the header section regardless of Content-Length or
Transfer-Encoding. They cannot contain a message body or trailer
section.

Teach relayd to apply that framing rule before deciding whether a
response body is bounded. Otherwise relayd treats these responses as
unbounded, adds Connection: close, and can forward both the backend's
Connection: keep-alive and its own Connection: close.

Tweaks and OK: rsadowski@

Reply via email to