|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Limits that protect the server against clients that misbehave or try to exhaust its resources. More...
#include <server.h>
Public Attributes | |
| int | maxSessions = 32 |
| Most sessions at once, over all transports. | |
| int | maxHttpConnections = 32 |
| Most open HTTP connections (notification streams included); further connections get 503 and are closed. | |
| qsizetype | maxRequestBytes = qsizetype{ 4 } * 1024 * 1024 |
| Largest HTTP request body, and longest local-socket message line, in bytes. | |
| std::chrono::milliseconds | requestTimeout { 30000 } |
| An HTTP request must arrive completely within this time, and an idle keep-alive connection is closed after it (408 for a partial request). | |
| int | maxConcurrentToolCalls = 16 |
| Most tool calls in flight per session; further calls get a tool error. | |
| std::chrono::milliseconds | sessionIdleTimeout { 30 * 60 * 1000 } |
| An HTTP session with no notification stream and nothing in flight ends after this much inactivity. | |
| std::chrono::milliseconds | guiResponseTimeout { 5000 } |
| WorkerThread mode only: a tool call or resource read that the server's thread hasn't started within this time fails, with an explanation that the thread seems blocked. | |
| std::chrono::milliseconds | approvalTimeout { 2 * 60 * 1000 } |
| How long a client asking to start a session waits for the application's approval (see Server::setSessionApproval()) before it is refused. | |
Limits that protect the server against clients that misbehave or try to exhaust its resources.
The defaults suit interactive use by one or a few agents; see Server::setLimits().
| std::chrono::milliseconds Sonde::ServerLimits::approvalTimeout { 2 * 60 * 1000 } |
How long a client asking to start a session waits for the application's approval (see Server::setSessionApproval()) before it is refused.
0 waits forever, as for guiResponseTimeout.
| std::chrono::milliseconds Sonde::ServerLimits::guiResponseTimeout { 5000 } |
WorkerThread mode only: a tool call or resource read that the server's thread hasn't started within this time fails, with an explanation that the thread seems blocked.
0 waits forever. Raise it for applications that do long work on their GUI thread on purpose.
| int Sonde::ServerLimits::maxSessions = 32 |
Most sessions at once, over all transports.
Further HTTP initialize requests get 503; further local connections are closed.