|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Keep-alive HTTP(S) connection pool for async_post. More...
#include <neograph/async/http_client.h>#include <asio/any_io_executor.hpp>#include <asio/awaitable.hpp>#include <chrono>#include <cstddef>#include <memory>#include <string>#include <string_view>#include <utility>#include <vector>Go to the source code of this file.
Keep-alive HTTP(S) connection pool for async_post.
Stage 3 / Semester 1.2 — follows 1.1 (TLS) with the other half of what makes real LLM/MCP endpoints usable at scale: amortizing the TCP connect + TLS handshake over many requests to the same host.
Semantics:
ConnPool::async_post mirrors the free async_post signature in http_client.h. The body, headers, path, and status/body return value behave identically.Connection: close, in which case it's dropped.Thread-safety: the pool may be shared across worker threads of one or more io_contexts. Check-out/check-in are serialized by an internal mutex; actual network I/O happens outside the lock.
Definition in file conn_pool.h.