mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00

This makes connections (particularly TLS-based ones) do the handshaking stuff only once. Currently the cache is configured to keep at most two connections evenly balanced in queue size, and with a grace period of 10s after the last queued job has finished (after which the connection will be dropped).
26 lines
571 B
CMake
26 lines
571 B
CMake
serenity_component(
|
|
RequestServer
|
|
TARGETS RequestServer
|
|
)
|
|
|
|
compile_ipc(RequestServer.ipc RequestServerEndpoint.h)
|
|
compile_ipc(RequestClient.ipc RequestClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ClientConnection.cpp
|
|
ConnectionCache.cpp
|
|
Request.cpp
|
|
RequestClientEndpoint.h
|
|
RequestServerEndpoint.h
|
|
GeminiRequest.cpp
|
|
GeminiProtocol.cpp
|
|
HttpRequest.cpp
|
|
HttpProtocol.cpp
|
|
HttpsRequest.cpp
|
|
HttpsProtocol.cpp
|
|
main.cpp
|
|
Protocol.cpp
|
|
)
|
|
|
|
serenity_bin(RequestServer)
|
|
target_link_libraries(RequestServer LibCore LibIPC LibGemini LibHTTP)
|