Skip to contents

The §26.2 counters for a client's pool. hits is the number of requests that reused an existing connection; without it, a pooled client and an unpooled one are indistinguishable from R, since both simply return responses.

Usage

zu_pool_stats(client)

Arguments

client

A zu_client.

Value

A named numeric vector, or NULL if the client has pooling disabled or has not made a request yet. discarded_fork and forks_detected count connections dropped by the §26.4 PID guard.

Examples

zu_pool_stats(zu_client())
#> NULL