mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
delaypool Struct Reference

Shared-memory rate-limiting state tracking per-IP token buckets and whitelisted prefixes. More...

#include <mod_tile.h>

Public Attributes

delaypool_entry users [100057]
 Fixed-size hash table of per-client IP token buckets.
in_addr_t whitelist [13]
 Array of whitelisted IPv4 addresses exempt from delaypool rate limits.
apr_time_t last_tile_fillup
 Timestamp of the last global tile token refill pass.
apr_time_t last_render_fillup
 Timestamp of the last global render token refill pass.
int locked
 Atomic spinlock flag (0 unlocked, 1 locked) serializing shared-memory updates.

Detailed Description

Shared-memory rate-limiting state tracking per-IP token buckets and whitelisted prefixes.

Member Data Documentation

◆ last_render_fillup

apr_time_t delaypool::last_render_fillup

Timestamp of the last global render token refill pass.

◆ last_tile_fillup

apr_time_t delaypool::last_tile_fillup

Timestamp of the last global tile token refill pass.

◆ locked

int delaypool::locked

Atomic spinlock flag (0 unlocked, 1 locked) serializing shared-memory updates.

◆ users

delaypool_entry delaypool::users[100057]

Fixed-size hash table of per-client IP token buckets.

◆ whitelist

in_addr_t delaypool::whitelist[13]

Array of whitelisted IPv4 addresses exempt from delaypool rate limits.


The documentation for this struct was generated from the following file: