morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::net::SocketServerConfig Struct Reference

Configuration for SocketServer. More...

#include <socket_server.hpp>

Public Attributes

int backlog = 64
 Pending-connection backlog passed to the listening socket.
std::chrono::milliseconds handshakeTimeout {10000}
 Bound on completing the RFC 6455 Upgrade handshake, from accept to the request's terminating \r\n\r\n, as a single deadline across the whole read. Zero disables it.
std::chrono::milliseconds sendTimeout {30000}
 Bound on writing one chunk (up to 64 KiB) of a reply frame.

Detailed Description

Configuration for SocketServer.

Definition at line 66 of file socket_server.hpp.

Member Data Documentation

◆ backlog

int morph::net::SocketServerConfig::backlog = 64

Pending-connection backlog passed to the listening socket.

Definition at line 68 of file socket_server.hpp.

◆ handshakeTimeout

std::chrono::milliseconds morph::net::SocketServerConfig::handshakeTimeout {10000}

Bound on completing the RFC 6455 Upgrade handshake, from accept to the request's terminating \r\n\r\n, as a single deadline across the whole read. Zero disables it.

Definition at line 73 of file socket_server.hpp.

◆ sendTimeout

std::chrono::milliseconds morph::net::SocketServerConfig::sendTimeout {30000}

Bound on writing one chunk (up to 64 KiB) of a reply frame.

A loop timer armed around each chunk's write closes the connection when it runs out, so a peer that stops reading is retired — its models reclaimed, its requests no longer dispatched — instead of accumulating replies it will never read. Zero disables it.

Definition at line 81 of file socket_server.hpp.


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