diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-23 06:19:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-23 06:19:24 +0000 |
commit | 166697ec1274c39641c4eb1a477de29b3991f356 (patch) | |
tree | 0dc35c4ef0b32c7e06ea2ce1d59214a7b72592c8 /doc/tipideed.html | |
parent | 68a35fb8e58f86995929839330b7aee0a3a92a87 (diff) | |
download | tipidee-166697ec1274c39641c4eb1a477de29b3991f356.tar.xz |
Doc fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/tipideed.html')
-rw-r--r-- | doc/tipideed.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/tipideed.html b/doc/tipideed.html index d315086..79c055b 100644 --- a/doc/tipideed.html +++ b/doc/tipideed.html @@ -37,8 +37,8 @@ to fulfill them, sending answers to stdout, and logs to stderr. </li> <li> tipideed only speaks plaintext HTTP. It supports HTTPS, but the TLS layer must be handled upstream by a program such as <a href="//skarnet.org/software/s6-networking/s6-tlsd.html">s6-tlsd</a>. </li> - <li> tipideed stays alive until the client closes the connection or (in -HTTP 1.1) sends a request with a <tt>Connection: close</tt> header, or an error + <li> tipideed stays alive until the client closes the connection, or times out, +or (in HTTP 1.1) sends a request with a <tt>Connection: close</tt> header; or an error occurs that makes it nonsensical to keep the connection open. </li> <li> By default, the documents it serves must be in subdirectories of its current working directory, one subdirectory for every domain it hosts. </li> @@ -91,7 +91,9 @@ of the tipidee package provides service templates to help you run tipideed under <dl> <dt> 0 </dt> <dd> Clean exit. There was a successful stream of HTTP exchanges, -that the client decided to end. </dd> +that the client decided to end — including by being inactive long enough +that tipideed closes the connection on its own initiative, which is permitted +by HTTP. </dd> <dt> 1 </dt> <dd> Illicit client behaviour. tipideed exited because it could not serve the client in good faith. </dd> <dt> 2 </dt> <dd> Illicit CGI script behaviour. tipideed exited because the invoked @@ -121,7 +123,7 @@ client before exiting. </dd> tipideed expects the following variables in its environment, and will exit with an error message if they are undefined. When tipideed is run under <a href="//skarnet.org/s6-networking/s6-tcpserver.html">s6-tcpserver</a> -(with <a href="//skarnet.org/s6-networking/s6-tcpserver-access.html">s6-tcpserver-access</a> or +(with <a href="//skarnet.org/s6-networking/s6-tcpserver-access.html">s6-tcpserver-access</a>) or <a href="//skarnet.org/s6-networking/s6-tlsserver.html">s6-tlsserver</a>, these variables are automatically set by the super-server. This is the way tipidee gets its network information without having to perform network @@ -373,8 +375,9 @@ backends. </li> <li> Else, the resource is a regular ("static") file, and tipideed serves it on its stdout, to the client. </li> </ul> </li> - <li> tipideed exits on EOF (when the client closes the connection), or after -a single HTTP/1.0 request, or when it has answered a request with a + <li> tipideed exits on EOF (when the client closes the connection), or when +the client times out before sending a request, or after tipideed receives a +single HTTP/1.0 request, or when it has answered a request with a <tt>Connection: close</tt> header, or when it encounters an error where it is likely that the client will have no use for the connection anymore anyway and exiting is simpler and cheaper — in which case tipideed adds |