nchan_redis_wait_after_connecting

Configures the wait time after connecting to Redis in Nchan's pub/sub architecture.

Syntaxnchan_redis_wait_after_connecting time_in_seconds;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The nchan_redis_wait_after_connecting directive specifies the duration Nchan should wait before proceeding after establishing a connection to the Redis server. This wait period is crucial for ensuring that the connection is stable and ready to handle requests for message publishing or subscription. The parameter is typically expressed in seconds.

Config Example

location /publish {
    nchan_redis_wait_after_connecting 0.5;
    nchan_pubsub;
}

Setting a very low wait time might lead to unstable connections where requests fail due to the Redis server not being ready.

If Redis is frequently unreachable, consider increasing the wait time to stabilize connections.

← Back to all directives