MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / prompt_ends_in_open_think

Function prompt_ends_in_open_think

server/src/server/http_server.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97namespace dflash::common {
98
99namespace {
100constexpr auto kClientMonitorInterval = std::chrono::milliseconds(250);
101constexpr auto kSseHeartbeatInterval = std::chrono::seconds(15);
102constexpr auto kReadClosedProbeInterval = std::chrono::seconds(1);
103constexpr char kSseHeartbeat[] = ": keep-alive\n\n";
104}
105
106namespace http_detail {
107
108PeerSocketState inspect_peer_socket(SocketHandle fd) {
109 struct pollfd pfd = {fd, POLLIN, 0};
110#if defined(POLLRDHUP)
111 pfd.events |= POLLRDHUP;
112#endif

Callers 1

route_requestMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected