1 Dispatching Server
The Web Server is just a configuration of a dispatching server.
1.1 Dispatching Server Signatures
The dispatch-server^ signature is an alias for
Runs the server—the confirmation channel will be send an exception if one occurs starting the server or the port number if there is none—and returns a procedure that shuts down the server.
Serves a single connection represented by the ports ip and
Specifies the port to serve on.
Specifies the initial timeout given to a connection.
Defines the way the server reads requests off connections to be passed
How to handle requests.
1.2 Dispatching Server Unit
Runs the dispatching server config in a very basic way, except that it uses
to manage connections.
1.3 Threads and Custodians
The dispatching server runs in a dedicated thread. Every time a connection is initiated, a new thread is started to handle it.
Connection threads are created inside a dedicated custodian that is a child of the server’s custodian. When the server is used to
provide servlets, each servlet also receives a new custodian that is a child of the server’s custodian not the connection