subtle change in description of httpd (forking a thread)
This commit is contained in:
parent
c816310cea
commit
3ce4729a91
doc/latex
|
@ -78,14 +78,12 @@ one argument, a \ex{httpd\=options}-record:
|
||||||
The server's basic loop is to wait on the port for a connection from
|
The server's basic loop is to wait on the port for a connection from
|
||||||
an HTTP client. When it receives a connection, it reads in and
|
an HTTP client. When it receives a connection, it reads in and
|
||||||
parses the request into a special request data structure. Then the
|
parses the request into a special request data structure. Then the
|
||||||
server \FIXME{Does the server still fork or does it make a thread. Is
|
server forks a thread, who binds the current I/O ports to the
|
||||||
this a difference? (Do not know)} forks a child process, who binds
|
connection socket, and then hands off to the top-level
|
||||||
the current I/O ports to the connection socket, and then hands off
|
\semvar{path-handler} (the first argument to httpd). The
|
||||||
to the top-level \semvar{path-handler} (the first argument to
|
\semvar{path-handler} procedure is responsible for actually serving
|
||||||
httpd). The \semvar{path-handler} procedure is responsible for
|
the request -- it can be any arbitrary computation. Its output goes
|
||||||
actually serving the request -- it can be any arbitrary computation.
|
directly back to the HTTP client that sent the request.
|
||||||
Its output goes directly back to the HTTP client that sent the
|
|
||||||
request.
|
|
||||||
|
|
||||||
Before calling the path handler to service the request, the HTTP
|
Before calling the path handler to service the request, the HTTP
|
||||||
server installs an error handler that fields any uncaught error,
|
server installs an error handler that fields any uncaught error,
|
||||||
|
|
Loading…
Reference in New Issue