handy_httpd.components.worker_pool

This module defines the request worker pool interface, as well as some basic implementations of it.

Members

Classes

BlockingWorkerPool
class BlockingWorkerPool

A worker pool implementation that isn't even a pool, but simply executes all request processing as soon as a socket is submitted, on the calling thread. It uses a single buffer and parser for all requests.

TaskPoolWorkerPool
class TaskPoolWorkerPool

A basic worker pool implementation that uses Phobos' std.parallelism and its TaskPool to asynchronously process requests. Due to the temporary nature of Phobos' tasks, a new receive buffer must be allocated for each request.

Interfaces

RequestWorkerPool
interface RequestWorkerPool

A pool to which connecting client sockets can be submitted so that their requests may be handled.