handy_httpd.components.request_queue

Internal queue implementation for incoming socket connections, which is designed for high throughput and thread-safety so that connections can be handed off to many workers concurrently.

Members

Classes

ConcurrentBlockingRequestQueue
class ConcurrentBlockingRequestQueue

A simple array-based queue that uses synchronization to handle concurrent access to the data. The queue is blocked when requests are added, and when they're removed. It's not the best performance, but it just works.

Interfaces

RequestQueue
interface RequestQueue

The request queue is an interface that defines the basic enqueue and dequeue methods to add a socket to the queue (the server does this), and remove a socket from the queue (workers do this).