MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / cancel_request

Method cancel_request

src/server/server.cpp:547–556  ·  view source on GitHub ↗

@brief cancel request @param request_id the request ID @return true if request was found and cancelled

Source from the content-addressed store, hash-verified

545///@param request_id the request ID
546///@return true if request was found and cancelled
547bool WebServer::cancel_request(const std::string& request_id) {
548 std::lock_guard<std::mutex> lock(active_requests_mutex_);
549 auto it = active_requests_.find(request_id);
550 if (it != active_requests_.end()) {
551 it->second->cancel();
552 active_requests_.erase(it);
553 return true;
554 }
555 return false;
556}
557
558///@brief register handler
559///@param method the method

Callers 1

create_lm_serverFunction · 0.80

Calls 3

cancelMethod · 0.80
eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected