dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Server::UnixServer::Options Struct Reference

Server configuration values (mostly controlled via Utils::SystemConfig). More...

#include <dfx-server/UnixServer.hpp>

Public Attributes

fs::path socket
 Path to the unix domain socket file.
uint32_t permission = 0
 Permission mask applied to the socket file (octal, e.g. 0600). Must be <= 0777.
uint32_t backlog = 0
 Backlog value used for listen(2).
std::chrono::milliseconds inactivityTimeout {0}
 Inactivity timeout for sessions.
std::chrono::milliseconds timeoutAccuracy {0}
 Periodic timer interval for timeout/error checks.
uint64_t errCountBeforeClose = 0
 Maximum number of total error responses sent to a client before closing. Value 0 disables this limit.
uint64_t consecutiveErrCountBeforeClose = 0
 Maximum number of consecutive error responses sent to a client before closing.

Detailed Description

Server configuration values (mostly controlled via Utils::SystemConfig).

These options are populated and updated through SystemConfig entries registered in the UnixServer constructor.

Member Data Documentation

◆ backlog

uint32_t dfx::Server::UnixServer::Options::backlog = 0

Backlog value used for listen(2).

◆ consecutiveErrCountBeforeClose

uint64_t dfx::Server::UnixServer::Options::consecutiveErrCountBeforeClose = 0

Maximum number of consecutive error responses sent to a client before closing.

Value 0 disables this limit. The consecutive counter is expected to reset when a successful response is produced (session responsibility).

◆ errCountBeforeClose

uint64_t dfx::Server::UnixServer::Options::errCountBeforeClose = 0

Maximum number of total error responses sent to a client before closing. Value 0 disables this limit.

◆ inactivityTimeout

std::chrono::milliseconds dfx::Server::UnixServer::Options::inactivityTimeout {0}

Inactivity timeout for sessions.

A session is considered inactive when it doesn't send or receive messages for this duration. Timeouts are enforced by the periodic timer.

◆ permission

uint32_t dfx::Server::UnixServer::Options::permission = 0

Permission mask applied to the socket file (octal, e.g. 0600). Must be <= 0777.

◆ socket

fs::path dfx::Server::UnixServer::Options::socket

Path to the unix domain socket file.

◆ timeoutAccuracy

std::chrono::milliseconds dfx::Server::UnixServer::Options::timeoutAccuracy {0}

Periodic timer interval for timeout/error checks.

Controls how frequently the server checks sessions for inactivity / limits. The configuration enforces a minimum of 10 ms.


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